diff options
author | laforge <laforge> | 2005-04-17 14:13:37 +0000 |
---|---|---|
committer | laforge <laforge> | 2005-04-17 14:13:37 +0000 |
commit | 0c7427cf4950998d58132193c18fc1a76071832d (patch) | |
tree | 0d4560b85356338044e4af9cfdc1b86ebe575afc /conffile/conffile.c | |
parent | cf9658711c28f4c671740814e8c269e2fa6974fa (diff) |
fix conffile compilation
Diffstat (limited to 'conffile/conffile.c')
-rw-r--r-- | conffile/conffile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conffile/conffile.c b/conffile/conffile.c index 1fdb561..2da8603 100644 --- a/conffile/conffile.c +++ b/conffile/conffile.c @@ -117,6 +117,7 @@ int config_parse_file(const char *section, struct config_keyset *kset) char *args; int err = 0; int found = 0; + int i; char linebuf[LINE_LEN+1]; char *line = linebuf; @@ -169,7 +170,7 @@ int config_parse_file(const char *section, struct config_keyset *kset) DEBUGC("parse_file: entering main loop\n"); for (i = 0; i < kset->num_ces; i++) { - struct config_entry *ce = kset->ces[i]; + struct config_entry *ce = &kset->ces[i]; DEBUGC("parse main loop, key: %s\n", ce->key); if (strcmp(ce->key, (char *) &wordbuf)) { continue; @@ -209,7 +210,7 @@ int config_parse_file(const char *section, struct config_keyset *kset) for (i = 0; i < kset->num_ces; i++) { - struct config_entry *ce = kset->ces[i]; + struct config_entry *ce = &kset->ces[i]; DEBUGC("ce post loop, ce=%s\n", ce->key); if ((ce->options & CONFIG_OPT_MANDATORY) && (ce->hit == 0)) { DEBUGC("Mandatory config directive \"%s\" not found\n", |