aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2006-08-06 13:53:53 +0000
committerWarren Dukes <warren.dukes@gmail.com>2006-08-06 13:53:53 +0000
commit8e53406774e973e2a5793ccfe5069c514a82fb8a (patch)
treeea3b90b06bf7a66fbfb035262d079185b09d480c /src/conf.c
parent31de97a42b384ffd2ce7051248cefc075e935522 (diff)
downloadmpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.tar.gz
mpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.tar.xz
mpd-8e53406774e973e2a5793ccfe5069c514a82fb8a.zip
renamce cstrtok to buffer2array. please don't rename functions; especially to names that look extremely std-lib-ish. also, don't use isspace, apparently it's local dependent and potentially consideres ' ' or '\t' not to be a space, or considers other characters to be a space.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4574 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index bea4e2c08..54cb560b4 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -203,7 +203,7 @@ static ConfigParam *readConfigBlock(FILE * fp, int *count, char *string)
(*count)++;
- numberOfArgs = cstrtok(string, array, CONF_LINE_TOKEN_MAX);
+ numberOfArgs = buffer2array(string, array, CONF_LINE_TOKEN_MAX);
for (i = 0; i < numberOfArgs; i++) {
if (array[i][0] == CONF_COMMENT)
@@ -265,7 +265,7 @@ void readConf(char *file)
char *array[CONF_LINE_TOKEN_MAX] = { NULL };
count++;
- numberOfArgs = cstrtok(string, array, CONF_LINE_TOKEN_MAX);
+ numberOfArgs = buffer2array(string, array, CONF_LINE_TOKEN_MAX);
for (i = 0; i < numberOfArgs; i++) {
if (array[i][0] == CONF_COMMENT)