diff options
author | Eric Leblond <eric@inl.fr> | 2008-07-31 10:41:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-07-31 10:41:57 +0200 |
commit | 14a8a1e7dd1301002c99598a2b067cde3ca19b6e (patch) | |
tree | 3a9036bcafca17c49cc6b91850d759bd5dec1b2e /src/conffile.c | |
parent | a52690d2dbb0e14d705ba990cda9b7869a747c0b (diff) |
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 <eric@inl.fr>
Diffstat (limited to 'src/conffile.c')
-rw-r--r-- | src/conffile.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |