moonbridge
diff moonbridge.c @ 134:11269ec33cd7
Proper distinction between AF_* and PF_* constants (and commented where it is not the case)
author | jbe |
---|---|
date | Thu Apr 16 21:12:29 2015 +0200 (2015-04-16) |
parents | 89fc89b22e28 |
children | 795bc86be569 |
line diff
1.1 --- a/moonbridge.c Thu Apr 16 20:48:11 2015 +0200 1.2 +++ b/moonbridge.c Thu Apr 16 21:12:29 2015 +0200 1.3 @@ -545,7 +545,7 @@ 1.4 break; 1.5 case MOONBR_PROTO_TCP: 1.6 moonbr_log(LOG_INFO, "Adding TCP listener on interface \"%s\", port %i", listener->proto_specific.tcp.ip, listener->proto_specific.tcp.port); 1.7 - listener->listenfd = socket(listener->type_specific.socket.addr.addr_abstract.sa_family, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); 1.8 + listener->listenfd = socket(listener->type_specific.socket.addr.addr_abstract.sa_family, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); /* NOTE: not correctly using PF_* but AF_* constants here */ 1.9 if (listener->listenfd == -1) goto moonbr_start_pool_error; 1.10 { 1.11 /* avoid "Address already in use" error when restarting service */