From 14a8a1e7dd1301002c99598a2b067cde3ca19b6e Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 31 Jul 2008 10:41:57 +0200 Subject: cleanup: fix compilation warning related to signed and unsigned comparisons This patch fixes the warning related to signed and unsigned comparaison. Signed-off-by: Eric Leblond --- src/conffile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conffile.c') diff --git a/src/conffile.c b/src/conffile.c index 72afb8e..0c1a2a4 100644 --- a/src/conffile.c +++ b/src/conffile.c @@ -112,7 +112,7 @@ int config_parse_file(const char *section, struct config_keyset *kset) char *args; int err = 0; int found = 0; - int i; + unsigned int i; char linebuf[LINE_LEN+1]; char *line = linebuf; @@ -147,7 +147,7 @@ int config_parse_file(const char *section, struct config_keyset *kset) /* Parse this section until next section */ while (fgets(line, LINE_LEN, cfile)) { - int i; + unsigned int i; char wordbuf[LINE_LEN]; char *wordend; -- cgit v1.2.3