aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-03-05 09:38:16 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-03-05 09:38:16 +0000
commit3d752f7ab2e9e6e9c8601a4ed9f6fb127e51c509 (patch)
tree97b95136789abf79067a89ca55938b8de096c921 /networking
parentfca056f69129ae2b540ab14a1c5d4cf5f8becf9f (diff)
downloadbusybox-3d752f7ab2e9e6e9c8601a4ed9f6fb127e51c509.tar.gz
Patch from Steven Scholz to fix compiler warnings
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 6374e670f..f2fd2b38d 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1490,18 +1490,20 @@ static void handleIncoming(void)
char *purl;
int blank = -1;
char *urlArgs;
+ char *test;
+ struct stat sb;
+ int ip_allowed;
#ifdef CONFIG_FEATURE_HTTPD_CGI
const char *prequest = request_GET;
long length=0;
char *cookie = 0;
char *content_type = 0;
#endif
- char *test;
- struct stat sb;
- int ip_allowed;
- fd_set s_fd ;
- struct timeval tv ;
+#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
+ fd_set s_fd;
+ struct timeval tv;
int retval;
+#endif
#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH
int credentials = -1; /* if not requred this is Ok */