Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/cache/mod_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static ap_filter_rec_t *cache_invalidate_filter_handle;
/**
* Entity headers' names
*/
static const char *MOD_CACHE_ENTITY_HEADERS[] = {
static const char *const MOD_CACHE_ENTITY_HEADERS[] = {
"Allow",
"Content-Encoding",
"Content-Language",
Expand Down Expand Up @@ -819,7 +819,7 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
apr_time_t exp, date, lastmod, now;
apr_off_t size = -1;
cache_info *info = NULL;
const char *reason, **eh;
const char *reason, *const *eh;
apr_pool_t *p;
apr_bucket *e;
apr_table_t *headers;
Expand Down
2 changes: 1 addition & 1 deletion modules/filters/mod_proxy_html.c
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ static void proxy_html_insert(request_rec *r)
}
static void proxy_html_hooks(apr_pool_t *p)
{
static const char *aszSucc[] = { "mod_filter.c", NULL };
static const char *const aszSucc[] = { "mod_filter.c", NULL };
ap_register_output_filter_protocol("proxy-html", proxy_html_filter,
NULL, AP_FTYPE_RESOURCE,
AP_FILTER_PROTO_CHANGE|AP_FILTER_PROTO_CHANGE_LENGTH);
Expand Down
4 changes: 2 additions & 2 deletions modules/http2/h2_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const char *H2_MAGIC_TOKEN = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
/*******************************************************************************
* HTTP/2 error stuff
*/
static const char *h2_err_descr[] = {
static const char *const h2_err_descr[] = {
"no error", /* 0x0 */
"protocol error",
"internal error",
Expand Down Expand Up @@ -91,7 +91,7 @@ const char *h2_protocol_err_description(unsigned int h2_error)
* Black Listed Ciphers from RFC 7549 Appendix A
*
*/
static const char *RFC7540_names[] = {
static const char *const RFC7540_names[] = {
/* ciphers with NULL encrpytion */
"NULL-MD5", /* TLS_NULL_WITH_NULL_NULL */
/* same */ /* TLS_RSA_WITH_NULL_MD5 */
Expand Down
2 changes: 1 addition & 1 deletion modules/http2/h2_proxy_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ static apr_status_t session_shutdown(h2_proxy_session *session, int reason,
}


static const char *StateNames[] = {
static const char *const StateNames[] = {
"INIT", /* H2_PROXYS_ST_INIT */
"DONE", /* H2_PROXYS_ST_DONE */
"IDLE", /* H2_PROXYS_ST_IDLE */
Expand Down
2 changes: 1 addition & 1 deletion modules/http2/h2_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ static void on_stream_output(void *ctx, h2_stream *stream)
}


static const char *StateNames[] = {
static const char *const StateNames[] = {
"INIT", /* H2_SESSION_ST_INIT */
"DONE", /* H2_SESSION_ST_DONE */
"IDLE", /* H2_SESSION_ST_IDLE */
Expand Down
2 changes: 1 addition & 1 deletion modules/loggers/mod_logio.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static const command_rec logio_cmds[] = {

static void register_hooks(apr_pool_t *p)
{
static const char *pre[] = { "mod_log_config.c", NULL };
static const char *const pre[] = { "mod_log_config.c", NULL };

ap_hook_pre_connection(logio_pre_conn, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_pre_config(logio_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
Expand Down
2 changes: 1 addition & 1 deletion modules/mappers/mod_speling.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ typedef enum {
SP_VERYDIFFERENT = 6
} sp_reason;

static const char *sp_reason_str[] =
static const char *const sp_reason_str[] =
{
"identical",
"miscapitalized",
Expand Down
2 changes: 1 addition & 1 deletion modules/md/md_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#define LOG_BUFFER_LEN 1024

static const char *level_names[] = {
static const char *const level_names[] = {
"emergency",
"alert",
"crit",
Expand Down
2 changes: 1 addition & 1 deletion modules/md/md_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#define GNAME_STAGING
#define GNAME_ARCHIVE

static const char *GROUP_NAME[] = {
static const char *const GROUP_NAME[] = {
"none",
"accounts",
"challenges",
Expand Down
2 changes: 1 addition & 1 deletion modules/proxy/ajp_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

APLOG_USE_MODULE(proxy_ajp);

static const char *response_trans_headers[] = {
static const char *const response_trans_headers[] = {
"Content-Type",
"Content-Language",
"Content-Length",
Expand Down
4 changes: 2 additions & 2 deletions modules/proxy/mod_proxy_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ static request_rec *make_fake_req(conn_rec *c, request_rec *r)
static void process_proxy_header(request_rec *r, proxy_dir_conf *c,
const char *key, const char *value)
{
static const char *date_hdrs[]
static const char *const date_hdrs[]
= { "Date", "Expires", "Last-Modified", NULL };
static const struct {
const char *name;
Expand Down Expand Up @@ -1086,7 +1086,7 @@ int ap_proxy_http_process_response(proxy_http_req_t *req)
int pread_len = 0;
apr_table_t *save_table;
int backend_broke = 0;
static const char *hop_by_hop_hdrs[] =
static const char *const hop_by_hop_hdrs[] =
{"Keep-Alive", "Proxy-Authenticate", "TE", "Trailer", "Upgrade", NULL};
int i;
const char *te = NULL;
Expand Down
4 changes: 2 additions & 2 deletions modules/ssl/mod_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,12 +747,12 @@ static void ssl_register_hooks(apr_pool_t *p)
{
/* ssl_hook_ReadReq needs to use the BrowserMatch settings so must
* run after mod_setenvif's post_read_request hook. */
static const char *pre_prr[] = { "mod_setenvif.c", NULL };
static const char *const pre_prr[] = { "mod_setenvif.c", NULL };
/* The ssl_init_Module post_config hook should run before mod_proxy's
* for the ssl proxy main configs to be merged with vhosts' before being
* themselves merged with mod_proxy's in proxy_hook_section_post_config.
*/
static const char *b_pc[] = { "mod_proxy.c", NULL};
static const char *const b_pc[] = { "mod_proxy.c", NULL};


ssl_io_filter_register(p);
Expand Down
2 changes: 1 addition & 1 deletion server/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ AP_DECLARE_DATA ap_filter_rec_t *ap_old_write_func = NULL;


/* Patterns to match in ap_make_content_type() */
static const char *needcset[] = {
static const char *const needcset[] = {
"text/plain",
"text/html",
NULL
Expand Down
Loading