Fix redundant assignment in TCP_server.c

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-20 13:52:23 +02:00
parent 9b2d3e50b2
commit dee6c72d2c

View File

@ -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) {