diff options
| author | Christian Göttsche | 2026-02-22 22:08:08 +0100 |
|---|---|---|
| committer | Julien Voisin | 2026-02-22 23:58:54 +0100 |
| commit | a3de1607c792eefa6d994f64d4ceaedcef02e0be (patch) | |
| tree | b7ae568337a2228928b532026a99967f5e94dc00 /src/sp_config.c | |
| parent | 31d70da1ff61480f51b8ca747bc8c8d8a37c5061 (diff) | |
Constify function pointer tables
Diffstat (limited to 'src/sp_config.c')
| -rw-r--r-- | src/sp_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_config.c b/src/sp_config.c index 34657e5..563327e 100644 --- a/src/sp_config.c +++ b/src/sp_config.c | |||
| @@ -6,12 +6,12 @@ | |||
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | static zend_result sp_process_config_root(sp_parsed_keyword *parsed_rule) { | 8 | static zend_result sp_process_config_root(sp_parsed_keyword *parsed_rule) { |
| 9 | sp_config_keyword sp_func[] = { | 9 | const sp_config_keyword sp_func[] = { |
| 10 | {parse_unserialize, SP_TOKEN_UNSERIALIZE_HMAC, &(SPCFG(unserialize))}, | 10 | {parse_unserialize, SP_TOKEN_UNSERIALIZE_HMAC, &(SPCFG(unserialize))}, |
| 11 | {parse_unserialize_noclass, SP_TOKEN_UNSERIALIZE_NOCLASS, &(SPCFG(unserialize_noclass))}, | 11 | {parse_unserialize_noclass, SP_TOKEN_UNSERIALIZE_NOCLASS, &(SPCFG(unserialize_noclass))}, |
| 12 | {parse_enable, SP_TOKEN_HARDEN_RANDOM, &(SPCFG(random).enable)}, | 12 | {parse_enable, SP_TOKEN_HARDEN_RANDOM, &(SPCFG(random).enable)}, |
| 13 | {parse_log_media, SP_TOKEN_LOG_MEDIA, &(SPCFG(log_media))}, | 13 | {parse_log_media, SP_TOKEN_LOG_MEDIA, &(SPCFG(log_media))}, |
| 14 | {parse_uint, SP_TOKEN_LOG_MAX_LEN, &(SPCFG(log_max_len))}, | 14 | {parse_uint, SP_TOKEN_LOG_MAX_LEN, &(SPCFG(log_max_len))}, |
| 15 | {parse_disabled_functions, SP_TOKEN_DISABLE_FUNC, NULL}, | 15 | {parse_disabled_functions, SP_TOKEN_DISABLE_FUNC, NULL}, |
| 16 | {parse_readonly_exec, SP_TOKEN_READONLY_EXEC, &(SPCFG(readonly_exec))}, | 16 | {parse_readonly_exec, SP_TOKEN_READONLY_EXEC, &(SPCFG(readonly_exec))}, |
| 17 | {parse_enable, SP_TOKEN_GLOBAL_STRICT, &(SPCFG(global_strict).enable)}, | 17 | {parse_enable, SP_TOKEN_GLOBAL_STRICT, &(SPCFG(global_strict).enable)}, |
