diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_config.c | 4 | ||||
| -rw-r--r-- | src/sp_config.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_config.c b/src/sp_config.c index 7294b0e..5431eca 100644 --- a/src/sp_config.c +++ b/src/sp_config.c | |||
| @@ -65,10 +65,10 @@ zend_result sp_parse_config(const char *filename) { | |||
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, sp_config_keyword *config_keywords) { | 68 | zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, const sp_config_keyword *config_keywords) { |
| 69 | for (sp_parsed_keyword *kw = parsed_rule; kw->kw; kw++) { | 69 | for (sp_parsed_keyword *kw = parsed_rule; kw->kw; kw++) { |
| 70 | bool found_kw = false; | 70 | bool found_kw = false; |
| 71 | for (sp_config_keyword *ckw = config_keywords; ckw->func; ckw++) { | 71 | for (const sp_config_keyword *ckw = config_keywords; ckw->func; ckw++) { |
| 72 | if (kw->kwlen == strlen(ckw->token) && !strncmp(kw->kw, ckw->token, kw->kwlen)) { | 72 | if (kw->kwlen == strlen(ckw->token) && !strncmp(kw->kw, ckw->token, kw->kwlen)) { |
| 73 | if (ckw->func) { | 73 | if (ckw->func) { |
| 74 | int ret = ckw->func(ckw->token, kw, ckw->retval); | 74 | int ret = ckw->func(ckw->token, kw, ckw->retval); |
diff --git a/src/sp_config.h b/src/sp_config.h index 6d48240..87710a0 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -269,7 +269,7 @@ typedef struct { | |||
| 269 | 269 | ||
| 270 | #define SP_TOKEN_LIST "list" | 270 | #define SP_TOKEN_LIST "list" |
| 271 | 271 | ||
| 272 | zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, sp_config_keyword *config_keywords); | 272 | zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, const sp_config_keyword *config_keywords); |
| 273 | 273 | ||
| 274 | zend_result sp_parse_config(const char *filename); | 274 | zend_result sp_parse_config(const char *filename); |
| 275 | 275 | ||
