diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-14 06:36:48 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-14 06:36:48 +0000 |
commit | 557676bdf528741f188f6af0e7bb5f25e29e7d3e (patch) | |
tree | 69a82c960d2d17fa6da7cafa88a607a9f0aa9e83 /libc/string/config.c | |
parent | c3a27f5095a50bef9e56f19eeed1176319e189e2 (diff) |
Work in progress -- cleanups.
-Erik
Diffstat (limited to 'libc/string/config.c')
-rw-r--r-- | libc/string/config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/string/config.c b/libc/string/config.c index 545207f6a..58716b922 100644 --- a/libc/string/config.c +++ b/libc/string/config.c @@ -46,7 +46,6 @@ cfgread(FILE *fp) char *ebuf; char *p; int i; - int j; if (!fp) { errno = EIO; @@ -86,7 +85,7 @@ cfgfind(FILE *fp, char *var) strncpy(search, var, sizeof(search)); fseek(fp, 0, SEEK_SET); - while (ret = cfgread(fp)) { + while ((ret = cfgread(fp))) { if (!strcmp(ret[0], search)) return ret; } return (void *)0; |