From dee6c72d2caa1f4ea1528370cf9bbe1a69373c95 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Fri, 20 Jun 2014 13:52:23 +0200 Subject: [PATCH] Fix redundant assignment in TCP_server.c --- toxcore/TCP_server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c index b900db6b..5652513e 100644 --- a/toxcore/TCP_server.c +++ b/toxcore/TCP_server.c @@ -818,9 +818,10 @@ static sock_t new_listening_TCP_socket(int family, uint16_t port) return ~0; } - int ok = 1; #ifndef TCP_SERVER_USE_EPOLL - ok = set_socket_nonblock(sock); + int ok = set_socket_nonblock(sock); +#else + int ok = 1; #endif if (ok && family == AF_INET6) {