mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix redundant assignment in TCP_server.c
This commit is contained in:
parent
9b2d3e50b2
commit
dee6c72d2c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user