httpinfo: dynamic_files is only used within the ADMIN_INTERFACE define
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jan 2012 18:27:50 +0000 (19:27 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jan 2012 18:38:18 +0000 (19:38 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/httpinfo/src/olsrd_httpinfo.c

index cbe196f..9965ed6 100644 (file)
@@ -240,12 +240,12 @@ static const struct static_txt_file_entry static_txt_files[] = {
   {NULL, NULL}
 };
 
-static const struct dynamic_file_entry dynamic_files[] = {
 #ifdef ADMIN_INTERFACE
+static const struct dynamic_file_entry dynamic_files[] = {
   {"set_values", process_set_values},
-#endif
   {NULL, NULL}
 };
+#endif
 
 static int
 get_http_socket(int port)