[BusyBox] patch for httpd.c

Stephane Billiart stephane at reefedge.com
Mon Sep 15 13:32:30 UTC 2003


This patch corrects an 'unused variable' warning and a syntax error
in networking/httpd.c when neither CONFIG_FEATURE_HTTPD_BASIC_AUTH nor
CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES are defined

-- 
Stéphane
-------------- next part --------------
--- networking/httpd.c.orig	Mon Sep 15 09:25:24 2003
+++ networking/httpd.c	Mon Sep 15 09:20:28 2003
@@ -474,10 +474,12 @@
 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 @@
 		}
 	    }
 #endif
-#endif
 	}
+#endif
    }
    fclose(f);
 }


More information about the busybox mailing list