aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 15:00:43 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 15:00:43 +0000
commitbaaa6e9e7db3bc91fa0edbe98fdd14e1e3eb6bad (patch)
treea01d25300a112468e900cdc2bc0eae5346767b8e /networking/httpd.c
parenta3822de23e8d2b1c173eab6925676de54c38b6f2 (diff)
downloadbusybox-baaa6e9e7db3bc91fa0edbe98fdd14e1e3eb6bad.tar.gz
Patch from Stephane Billiart to fix an unused variable warning.
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index b27437ab2..6f5100c9e 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -474,10 +474,12 @@ static void free_config_lines(Htaccess **pprev)
static void parse_conf(const char *path, int flag)
{
FILE *f;
+#if defined(CONFIG_FEATURE_HTTPD_BASIC_AUTH) || defined(CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES)
Htaccess *cur;
#ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH
Htaccess *prev;
#endif
+#endif
const char *cf = config->configFile;
char buf[160];
@@ -688,8 +690,8 @@ static void parse_conf(const char *path, int flag)
}
}
#endif
-#endif
}
+#endif
}
fclose(f);
}