Patch from Stephane Billiart to fix an unused variable warning.
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 15:00:43 +0000 (15:00 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 15:00:43 +0000 (15:00 -0000)
networking/httpd.c

index b27437ab23eb0ca35ed6c43c390c45f3b2988929..6f5100c9ebe15188cf9d5117edede088d303a8f4 100644 (file)
@@ -474,9 +474,11 @@ 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;
@@ -687,9 +689,9 @@ static void parse_conf(const char *path, int flag)
                    prev = cur;
                }
            }
-#endif
 #endif
        }
+#endif
    }
    fclose(f);
 }