diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/config.c b/src/config.c index 2e4e0e1dd..b46904a6b 100644 --- a/src/config.c +++ b/src/config.c @@ -355,10 +355,6 @@ int NumUlines; int UseTS6; - - -char **buildStringList(char *src, int *number); - /*************************************************************************/ /* Deprecated directive (dep_) and value checking (chk_) functions: */ @@ -1430,24 +1426,4 @@ int read_config(int reload) } -char **buildStringList(char *src, int *number) -{ - char *s; - int i = 0; - char **list = NULL; - - if (src) { - s = strtok(src, " "); - do { - if (s) { - i++; - list = realloc(list, sizeof(char *) * i); - list[i - 1] = sstrdup(s); - } - } while ((s = strtok(NULL, " "))); - } - *number = i; /* always zero it, even if we have no setters */ - return list; -} - /*************************************************************************/ |