aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-28 19:54:49 +0100
committerMax Kellermann <max@duempel.org>2008-12-28 19:54:49 +0100
commit859aac7242fe3767c19c1bfff73d5e6159cbad31 (patch)
tree2e433f6ec1a820d99ad171ffd6a49a6828ddd0e4 /src/conf.c
parent2598cdd86814c7792a431470a9143d609399697b (diff)
downloadmpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.gz
mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.tar.xz
mpd-859aac7242fe3767c19c1bfff73d5e6159cbad31.zip
utils: removed myFgets()
Replaced myFgets() with fgets() + g_strchomp().
Diffstat (limited to '')
-rw-r--r--src/conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 680a5fb1c..919502529 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -210,7 +210,7 @@ static ConfigParam *readConfigBlock(FILE * fp, int *count, char *string)
int numberOfArgs;
int argsMinusComment;
- while (myFgets(string, MAX_STRING_SIZE, fp)) {
+ while (fgets(string, MAX_STRING_SIZE, fp)) {
char *array[CONF_LINE_TOKEN_MAX] = { NULL };
(*count)++;
@@ -270,8 +270,9 @@ void readConf(const char *file)
strerror(errno));
}
- while (myFgets(string, MAX_STRING_SIZE, fp)) {
+ while (fgets(string, MAX_STRING_SIZE, fp)) {
char *array[CONF_LINE_TOKEN_MAX] = { NULL };
+
count++;
numberOfArgs = buffer2array(string, array, CONF_LINE_TOKEN_MAX);