From 703e20235aa0624d3ff4335c1e86edaa6e21efe2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 22 Jan 2007 14:12:08 +0000 Subject: cleanups: unnecessary casts, unified const_1, eliminate cross-.c file prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs. --- networking/httpd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'networking/httpd.c') diff --git a/networking/httpd.c b/networking/httpd.c index d14b113a3..ea9fe0974 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1764,8 +1764,6 @@ static void handleIncoming(void) ****************************************************************************/ static int miniHttpd(int server) { - static const int on = 1; - fd_set readfd, portfd; FD_ZERO(&portfd); @@ -1812,7 +1810,7 @@ static int miniHttpd(int server) #endif /* set the KEEPALIVE option to cull dead connections */ - setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, sizeof(on)); + setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1)); if (DEBUG || fork() == 0) { /* child */ -- cgit v1.2.3