From: Art Cancro Date: Mon, 16 Aug 2010 19:18:03 +0000 (+0000) Subject: * Oops ... went over my usual 109-character screen width when I was working on my... X-Git-Tag: v8.01~252^2~638 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=610d91b33886eeb47cddf34c498ad4697b53fbb9;p=citadel.git * Oops ... went over my usual 109-character screen width when I was working on my netbook the other night. Fixed. --- diff --git a/webcit/tcp_sockets.c b/webcit/tcp_sockets.c index 6d558d13a..fe7ce36e9 100644 --- a/webcit/tcp_sockets.c +++ b/webcit/tcp_sockets.c @@ -512,14 +512,14 @@ int webcit_tcp_server(char *ip_addr, int port_number, int queue_len) sin6.sin6_family = AF_INET6; sin4.sin_family = AF_INET; - if ( (ip_addr == NULL) /* any IPv6 address */ + if ( (ip_addr == NULL) /* any IPv6 */ || (IsEmptyStr(ip_addr)) || (!strcmp(ip_addr, "*")) ) { ip_version = 6; sin6.sin6_addr = in6addr_any; } - else if (!strcmp(ip_addr, "0.0.0.0")) /* any IPv4 address */ + else if (!strcmp(ip_addr, "0.0.0.0")) /* any IPv4 */ { ip_version = 4; sin4.sin_addr.s_addr = INADDR_ANY; @@ -571,7 +571,6 @@ int webcit_tcp_server(char *ip_addr, int port_number, int queue_len) return (-WC_EXIT_BIND); } - if (listen(s, queue_len) < 0) { lprintf(1, "Can't listen: %s\n", strerror(errno)); return (-WC_EXIT_BIND);