From 859aac7242fe3767c19c1bfff73d5e6159cbad31 Mon Sep 17 00:00:00 2001 From: Max Kellermann <max@duempel.org> Date: Sun, 28 Dec 2008 19:54:49 +0100 Subject: utils: removed myFgets() Replaced myFgets() with fgets() + g_strchomp(). --- src/conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/conf.c') 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); -- cgit v1.2.3