From 0fa56fb7b2e6c8279e6eec863cc926e04b8dd81f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 16 Aug 2010 19:18:03 +0000 Subject: [PATCH] * Oops ... went over my usual 109-character screen width when I was working on my netbook the other night. Fixed. --- webcit/tcp_sockets.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.30.2