diff options
author | irungentoo <irungentoo@gmail.com> | 2014-06-20 10:07:47 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-06-20 10:07:47 -0400 |
commit | 760333b9076cb5e9e89f5a296cf5afa92bec7e66 (patch) | |
tree | f59990b45d74a37eb6746a7e376f7f4168b60aad /toxcore | |
parent | 5c87c7bf4aaa3b932fe7fdfbf115cb18a99fbd65 (diff) | |
parent | dee6c72d2caa1f4ea1528370cf9bbe1a69373c95 (diff) |
Merge branch 'tcpserv' of https://github.com/tux3/toxcore
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/TCP_server.c | 5 |
1 files 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) | |||
818 | return ~0; | 818 | return ~0; |
819 | } | 819 | } |
820 | 820 | ||
821 | int ok = 1; | ||
822 | #ifndef TCP_SERVER_USE_EPOLL | 821 | #ifndef TCP_SERVER_USE_EPOLL |
823 | ok = set_socket_nonblock(sock); | 822 | int ok = set_socket_nonblock(sock); |
823 | #else | ||
824 | int ok = 1; | ||
824 | #endif | 825 | #endif |
825 | 826 | ||
826 | if (ok && family == AF_INET6) { | 827 | if (ok && family == AF_INET6) { |