From 0c7427cf4950998d58132193c18fc1a76071832d Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 17 Apr 2005 14:13:37 +0000 Subject: fix conffile compilation --- conffile/conffile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'conffile') 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", -- cgit v1.2.3