From bfa3e80ca0159ede2bbea22e93f46f1364ec7c67 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 3 Apr 2020 14:36:16 +0300 Subject: [PATCH] samples: net: echo_server: Fix compile issues from timeout overhaul Feed proper time delay parameter to K_THREAD_DEFINE() Signed-off-by: Jukka Rissanen --- samples/net/sockets/echo_server/src/tcp.c | 4 ++-- samples/net/sockets/echo_server/src/udp.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/net/sockets/echo_server/src/tcp.c b/samples/net/sockets/echo_server/src/tcp.c index 3ab449b98c6..d5b2b52383a 100644 --- a/samples/net/sockets/echo_server/src/tcp.c +++ b/samples/net/sockets/echo_server/src/tcp.c @@ -43,11 +43,11 @@ static void process_tcp6(void); K_THREAD_DEFINE(tcp4_thread_id, STACK_SIZE, process_tcp4, NULL, NULL, NULL, - THREAD_PRIORITY, 0, K_FOREVER); + THREAD_PRIORITY, 0, -1); K_THREAD_DEFINE(tcp6_thread_id, STACK_SIZE, process_tcp6, NULL, NULL, NULL, - THREAD_PRIORITY, 0, K_FOREVER); + THREAD_PRIORITY, 0, -1); static ssize_t sendall(int sock, const void *buf, size_t len) { diff --git a/samples/net/sockets/echo_server/src/udp.c b/samples/net/sockets/echo_server/src/udp.c index 9e8e13d3325..fbf1f4d9c8a 100644 --- a/samples/net/sockets/echo_server/src/udp.c +++ b/samples/net/sockets/echo_server/src/udp.c @@ -25,11 +25,11 @@ static void process_udp6(void); K_THREAD_DEFINE(udp4_thread_id, STACK_SIZE, process_udp4, NULL, NULL, NULL, - THREAD_PRIORITY, 0, K_FOREVER); + THREAD_PRIORITY, 0, -1); K_THREAD_DEFINE(udp6_thread_id, STACK_SIZE, process_udp6, NULL, NULL, NULL, - THREAD_PRIORITY, 0, K_FOREVER); + THREAD_PRIORITY, 0, -1); static int start_udp_proto(struct data *data, struct sockaddr *bind_addr, socklen_t bind_addrlen)