summaryrefslogtreecommitdiff
path: root/src/sp_config.c
diff options
context:
space:
mode:
authorjvoisin2022-05-03 00:04:50 +0200
committerjvoisin2022-05-03 00:04:50 +0200
commitefcc16ad74a32d4b735bad73690c49c5cdb63cb7 (patch)
treec69082dc7c7a4957fa2520d1ae119f8a24099232 /src/sp_config.c
parent5b25788a81bf7ad233d99cf3f5e9ce3dcc5e8602 (diff)
Add a `const`
Diffstat (limited to 'src/sp_config.c')
-rw-r--r--src/sp_config.c4
1 files changed, 2 insertions, 2 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
68zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, sp_config_keyword *config_keywords) { 68zend_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);