summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-03-02 23:15:51 +0300
committerDiadlo <polsha3@gmail.com>2017-08-24 20:09:08 +0300
commit66b8a7685e8fdecd6104f01f840f5d792ce1e041 (patch)
tree7c65281aefeb21c55ba422ff7d9587675eeb7070 /toxcore/TCP_server.c
parent8f19c926c0d5231ede61a831050664103e54000e (diff)
AF_INET -> TOX_AF_INET
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r--toxcore/TCP_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 3f2e554f..9b94667a 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -986,7 +986,7 @@ static Socket new_listening_TCP_socket(int family, uint16_t port)
986 986
987 int ok = set_socket_nonblock(sock); 987 int ok = set_socket_nonblock(sock);
988 988
989 if (ok && family == AF_INET6) { 989 if (ok && family == TOX_AF_INET6) {
990 ok = set_socket_dualstack(sock); 990 ok = set_socket_dualstack(sock);
991 } 991 }
992 992
@@ -1042,9 +1042,9 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin
1042 uint8_t family; 1042 uint8_t family;
1043 1043
1044 if (ipv6_enabled) { 1044 if (ipv6_enabled) {
1045 family = AF_INET6; 1045 family = TOX_AF_INET6;
1046 } else { 1046 } else {
1047 family = AF_INET; 1047 family = TOX_AF_INET;
1048 } 1048 }
1049 1049
1050 uint32_t i; 1050 uint32_t i;