]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add missing "const" or "static const" qualifiers in some command_rec
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 27 Sep 2020 07:52:55 +0000 (07:52 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 27 Sep 2020 07:52:55 +0000 (07:52 +0000)
definitions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882053 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_file_cache.c
modules/lua/mod_lua.c

index 4199361861495d1e0ee62f861b63e94fdc0cd36d..ce1db2d2c9347d622e59c468f9b712abbe6c57bd 100644 (file)
@@ -380,7 +380,7 @@ static int file_cache_handler(request_rec *r)
     return rc;
 }
 
-static command_rec file_cache_cmds[] =
+static const command_rec file_cache_cmds[] =
 {
 AP_INIT_ITERATE("cachefile", cachefilehandle, NULL, RSRC_CONF,
      "A space separated list of files to add to the file handle cache at config time"),
index 2790a47cc5bfcc78a75ed05e3c44d7051eb53c56..b70ecd323e52b64ddd208a47afbeec470765a39e 100644 (file)
@@ -1853,7 +1853,7 @@ static const char *register_authz_provider(cmd_parms *cmd, void *_cfg,
 }
 
 
-command_rec lua_commands[] = {
+static const command_rec lua_commands[] = {
 
     AP_INIT_TAKE1("LuaRoot", register_lua_root, NULL, OR_ALL,
                   "Specify the base path for resolving relative paths for mod_lua directives"),