Skip to content

Commit ee1468b

Browse files
tpambordkalowsk
authored andcommitted
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: Tim Pambor <tim.pambor@codewrights.de>
1 parent f682a17 commit ee1468b

File tree

1 file changed

+5
-3
lines changed
  • tests/net/socket/getaddrinfo/src

1 file changed

+5
-3
lines changed

tests/net/socket/getaddrinfo/src/main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ static bool check_dns_query(uint8_t *buf, int buf_len)
108108
return true;
109109
}
110110

111-
static int process_dns(void)
111+
static void process_dns(void *p1, void *p2, void *p3)
112112
{
113+
ARG_UNUSED(p1);
114+
ARG_UNUSED(p2);
115+
ARG_UNUSED(p3);
116+
113117
struct zsock_pollfd pollfds[2];
114118
struct sockaddr *addr;
115119
socklen_t addr_len;
@@ -164,8 +168,6 @@ static int process_dns(void)
164168
}
165169
}
166170
}
167-
168-
return -errno;
169171
}
170172

171173
K_THREAD_DEFINE(dns_server_thread_id, STACK_SIZE,

0 commit comments

Comments
 (0)