]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Data must be declared in place, forward declarations cannot be used
authorhno <>
Fri, 1 Jun 2001 12:51:16 +0000 (12:51 +0000)
committerhno <>
Fri, 1 Jun 2001 12:51:16 +0000 (12:51 +0000)
in a portable manner.

src/cache_cf.cc

index 6e90c0fd29187a42958c66a8356d7cefa898f096..f9557b1c89655414f827fea02e55b2b7438b01c0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.382 2001/05/27 23:33:31 hno Exp $
+ * $Id: cache_cf.cc,v 1.383 2001/06/01 06:51:16 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -55,7 +55,14 @@ static const char *const B_MBYTES_STR = "MB";
 static const char *const B_GBYTES_STR = "GB";
 
 static const char *const list_sep = ", \t\n\r";
-static struct cache_dir_option common_cachedir_options[];
+
+static struct cache_dir_option common_cachedir_options[] =
+{
+    {"read-only", parse_cachedir_option_readonly, dump_cachedir_option_readonly},
+    {"max-size", parse_cachedir_option_maxsize, dump_cachedir_option_maxsize},
+    {NULL, NULL}
+};
+
 
 static void update_maxobjsize(void);
 static void configDoConfigure(void);
@@ -1143,13 +1150,6 @@ dump_cachedir_option_maxsize(StoreEntry * e, const char *option, SwapDir * sd)
        storeAppendPrintf(e, " %s=%d", option, sd->max_objsize);
 }
 
-static struct cache_dir_option common_cachedir_options[] =
-{
-    {"read-only", parse_cachedir_option_readonly, dump_cachedir_option_readonly},
-    {"max-size", parse_cachedir_option_maxsize, dump_cachedir_option_maxsize},
-    {NULL, NULL}
-};
-
 void
 parse_cachedir_options(SwapDir * sd, struct cache_dir_option *options, int reconfiguring)
 {