You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Ames <gr...@raleigh.ibm.com> on 2000/07/05 20:04:51 UTC

[PATCH] mod_file_cache - warnings

convert to new AP_INIT_xxx command definition system & constipate

Greg

Index: modules/standard/mod_file_cache.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/modules/standard/mod_file_cache.c,v
retrieving revision 1.11
diff -u -d -b -w -r1.11 mod_file_cache.c
--- mod_file_cache.c    2000/06/28 19:19:46     1.11
+++ mod_file_cache.c    2000/07/05 17:59:11
@@ -218,7 +218,8 @@
 }
 #endif

-static const char *cachefile(cmd_parms *cmd, void *dummy, char *filename)
+static const char *cachefile(cmd_parms *cmd, void *dummy, const char *filename)
+
 {
 #if APR_HAS_SENDFILE
     a_server_config *sconf;
@@ -271,7 +272,7 @@
 #endif
 }

-static const char *mmapfile(cmd_parms *cmd, void *dummy, char *filename)
+static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename)
 {
 #if APR_HAS_MMAP
     a_server_config *sconf;
@@ -506,10 +507,10 @@

 static command_rec file_cache_cmds[] =
 {
-    {"cachefile", cachefile, NULL, RSRC_CONF, ITERATE,
-     "A space seperated list of files to add to the file handle cache at config time"},
-    {"mmapfile", mmapfile, NULL, RSRC_CONF, ITERATE,
-     "A space seperated list of files to mmap at config time"},
+AP_INIT_ITERATE("cachefile", cachefile, NULL, RSRC_CONF,
+     "A space seperated list of files to add to the file handle cache at config time"),
+AP_INIT_ITERATE("mmapfile", mmapfile, NULL, RSRC_CONF,
+     "A space seperated list of files to mmap at config time"),
     {NULL}
 };