aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 14:12:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 14:12:08 +0000
commit703e20235aa0624d3ff4335c1e86edaa6e21efe2 (patch)
tree49e8451efad93b75c0be74ee553d3b3f8c04a25d /networking/httpd.c
parent6cd2d2bcba37a13d0d73326dd7bca64bbccce4f8 (diff)
downloadbusybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.gz
busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.bz2
busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.zip
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.
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 1 insertions, 3 deletions
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)
1764 ****************************************************************************/ 1764 ****************************************************************************/
1765static int miniHttpd(int server) 1765static int miniHttpd(int server)
1766{ 1766{
1767 static const int on = 1;
1768
1769 fd_set readfd, portfd; 1767 fd_set readfd, portfd;
1770 1768
1771 FD_ZERO(&portfd); 1769 FD_ZERO(&portfd);
@@ -1812,7 +1810,7 @@ static int miniHttpd(int server)
1812#endif 1810#endif
1813 1811
1814 /* set the KEEPALIVE option to cull dead connections */ 1812 /* set the KEEPALIVE option to cull dead connections */
1815 setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, sizeof(on)); 1813 setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &const_int_1, sizeof(const_int_1));
1816 1814
1817 if (DEBUG || fork() == 0) { 1815 if (DEBUG || fork() == 0) {
1818 /* child */ 1816 /* child */