You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2020/09/27 07:52:56 UTC

svn commit: r1882053 - in /httpd/httpd/trunk/modules: cache/mod_file_cache.c lua/mod_lua.c

Author: jailletc36
Date: Sun Sep 27 07:52:55 2020
New Revision: 1882053

URL: http://svn.apache.org/viewvc?rev=1882053&view=rev
Log:
Add missing "const" or "static const" qualifiers in some command_rec
definitions.

Modified:
    httpd/httpd/trunk/modules/cache/mod_file_cache.c
    httpd/httpd/trunk/modules/lua/mod_lua.c

Modified: httpd/httpd/trunk/modules/cache/mod_file_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_file_cache.c?rev=1882053&r1=1882052&r2=1882053&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_file_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_file_cache.c Sun Sep 27 07:52:55 2020
@@ -380,7 +380,7 @@ static int file_cache_handler(request_re
     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"),

Modified: httpd/httpd/trunk/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1882053&r1=1882052&r2=1882053&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.c (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.c Sun Sep 27 07:52:55 2020
@@ -1853,7 +1853,7 @@ static const char *register_authz_provid
 }
 
 
-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"),