summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Robert P. J. Day"2006-08-03 10:50:39 +0000
committer"Robert P. J. Day"2006-08-03 10:50:39 +0000
commit581d4f36b3c78fb97ac4d2e60f0a6579c1651daf (patch)
treef783c1820b16c3d0264ce2c794f823b0c5d1593c
parentcae61e7ca4200e976de1a790075ef1d7b5317bb2 (diff)
downloadbusybox-581d4f36b3c78fb97ac4d2e60f0a6579c1651daf.zip
busybox-581d4f36b3c78fb97ac4d2e60f0a6579c1651daf.tar.gz
Move declaration to be compatible with older gcc's.
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 452b56d..64d88f1 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -863,6 +863,7 @@ static int openServer(void)
{
struct sockaddr_in lsocket;
int fd;
+ int on = 1;
/* create the socket right now */
/* inet_addr() returns a value that is already in network order */
@@ -873,7 +874,6 @@ static int openServer(void)
fd = bb_xsocket(AF_INET, SOCK_STREAM, 0);
/* tell the OS it's OK to reuse a previous address even though */
/* it may still be in a close down state. Allows bind to succeed. */
- int on = 1;
#ifdef SO_REUSEPORT
setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, (void *)&on, sizeof(on)) ;
#else