From: Christophe Jaillet Date: Sun, 27 Sep 2020 07:52:55 +0000 (+0000) Subject: Add missing "const" or "static const" qualifiers in some command_rec X-Git-Tag: 2.5.0-alpha2-ci-test-only~1201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=242d34175697d7cc185d3a2c4ffbae7a9ddba06b;p=thirdparty%2Fapache%2Fhttpd.git Add missing "const" or "static const" qualifiers in some command_rec definitions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882053 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index 41993618614..ce1db2d2c93 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -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"), diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 2790a47cc5b..b70ecd323e5 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -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"),