Commit ee1468b6 authored by Tim Pambor's avatar Tim Pambor Committed by Dan Kalowsky
Browse files

tests: net: socket: Fix function signature



Update the process_dns function signature to match the expected
k_thread_entry_t type:
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);

Signed-off-by: default avatarTim Pambor <tim.pambor@codewrights.de>
parent f682a173
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -108,8 +108,12 @@ static bool check_dns_query(uint8_t *buf, int buf_len)
	return true;
}

static int process_dns(void)
static void process_dns(void *p1, void *p2, void *p3)
{
	ARG_UNUSED(p1);
	ARG_UNUSED(p2);
	ARG_UNUSED(p3);

	struct zsock_pollfd pollfds[2];
	struct sockaddr *addr;
	socklen_t addr_len;
@@ -164,8 +168,6 @@ static int process_dns(void)
			}
		}
	}

	return -errno;
}

K_THREAD_DEFINE(dns_server_thread_id, STACK_SIZE,