summaryrefslogtreecommitdiff
path: root/src/sp_config_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_config_utils.c')
-rw-r--r--src/sp_config_utils.c6
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
4sp_list_node *parse_functions_list(char *value) { 4sp_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));