httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@raleigh.ibm.com>
Subject [PATCH]mod_mmap_static - clean up warnings
Date Mon, 03 Jul 2000 14:58:00 GMT
convert to new AP_INIT_xxx command definition system and constify to get rid of compiler
warnings

Greg Ames

Index: modules/experimental/mod_mmap_static.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/experimental/mod_mmap_static.c,v
retrieving revision 1.15
diff -u -d -b -w -r1.15 mod_mmap_static.c
--- modules/experimental/mod_mmap_static.c      2000/06/12 23:02:54     1.15
+++ modules/experimental/mod_mmap_static.c      2000/07/03 14:34:24
@@ -167,7 +167,7 @@
     return APR_SUCCESS;
 }

-static const char *mmapfile(cmd_parms *cmd, void *dummy, char *filename)
+static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename)
 {
     a_server_config *sconf;
     a_file *new_file;
@@ -325,8 +325,8 @@

 static command_rec mmap_cmds[] =
 {
-    {"mmapfile", mmapfile, NULL, RSRC_CONF, ITERATE,
-     "A space seperated list of files to mmap at config time"},
+AP_INIT_ITERATE("mmapfile", mmapfile, NULL, RSRC_CONF,
+     "A space seperated list of files to mmap at config time"),
     {NULL}
 };



Mime
View raw message