svn commit: trunk/busybox/networking

rpjday at busybox.net rpjday at busybox.net
Thu Aug 3 10:50:40 UTC 2006


Author: rpjday
Date: 2006-08-03 03:50:39 -0700 (Thu, 03 Aug 2006)
New Revision: 15765

Log:
Move declaration to be compatible with older gcc's.


Modified:
   trunk/busybox/networking/httpd.c


Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c	2006-08-02 21:19:09 UTC (rev 15764)
+++ trunk/busybox/networking/httpd.c	2006-08-03 10:50:39 UTC (rev 15765)
@@ -863,6 +863,7 @@
 {
   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 @@
   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




More information about the busybox-cvs mailing list