diff options
| author | BeF | 2022-07-20 12:15:07 +0200 |
|---|---|---|
| committer | GitHub | 2022-07-20 12:15:07 +0200 |
| commit | 2aed4220c2d019cc9b46fec70cfd79d249498e14 (patch) | |
| tree | e7cc3d1d4db617fc5ab1dbcc60f2366407eb5da5 /src/sp_config_utils.c | |
| parent | 72109c9bf016145364b19162a5ff998fc5858a9c (diff) | |
| parent | 75595945d1d868fbd6db743809ca8a3eb5de3113 (diff) | |
Merge pull request #1 from jvoisin/pr1
pr for fetching upstream
Diffstat (limited to 'src/sp_config_utils.c')
| -rw-r--r-- | src/sp_config_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_config_utils.c b/src/sp_config_utils.c index e93ef31..84b1f30 100644 --- a/src/sp_config_utils.c +++ b/src/sp_config_utils.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | sp_list_node *parse_functions_list(char *value) { | 4 | sp_list_node *parse_functions_list(const char *const value) { |
| 5 | static const char *sep = ">"; | 5 | static const char *const sep = ">"; |
| 6 | 6 | ||
| 7 | if (NULL == strchr(value, sep[0])) { | 7 | if (NULL == strchr(value, sep[0])) { |
| 8 | return NULL; | 8 | return NULL; |
| @@ -10,7 +10,7 @@ sp_list_node *parse_functions_list(char *value) { | |||
| 10 | 10 | ||
| 11 | sp_list_node *list = NULL; | 11 | sp_list_node *list = NULL; |
| 12 | char *tmp = strdup(value); | 12 | char *tmp = strdup(value); |
| 13 | char *function_name; | 13 | const char *function_name; |
| 14 | char *next_token = tmp; | 14 | char *next_token = tmp; |
| 15 | while ((function_name = strtok_r(NULL, sep, &next_token))) { | 15 | while ((function_name = strtok_r(NULL, sep, &next_token))) { |
| 16 | list = sp_list_prepend(list, strdup(function_name)); | 16 | list = sp_list_prepend(list, strdup(function_name)); |
