]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Constify static arrays of string constants.
authorJoe Orton <jorton@apache.org>
Fri, 1 May 2026 14:48:59 +0000 (14:48 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 1 May 2026 14:48:59 +0000 (14:48 +0000)
commit49d52aa3cfa8098fc54c1a2f396d399a96bc54c3
tree1f083d30706cdfeca28036d129344589f6037f30
parent67b271b6c733a49018843cf67b482832c87861ac
Constify static arrays of string constants.

Add const qualifier to the pointer in static arrays of
string constants (const char *[] -> const char *const [])
across various modules and server code, and adjust a
local variable type in mod_cache accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Github: closes #643

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933659 13f79535-47bb-0310-9956-ffa450edef68
13 files changed:
modules/cache/mod_cache.c
modules/filters/mod_proxy_html.c
modules/http2/h2_protocol.c
modules/http2/h2_proxy_session.c
modules/http2/h2_session.c
modules/loggers/mod_logio.c
modules/mappers/mod_speling.c
modules/md/md_log.c
modules/md/md_store.c
modules/proxy/ajp_header.c
modules/proxy/mod_proxy_http.c
modules/ssl/mod_ssl.c
server/protocol.c