conf_data_callback_fn data_fn;
} ConfSection;
-void iniparser(const char *fn, ConfSection *sect_list, bool reload);
+bool iniparser(const char *fn, ConfSection *sect_list, bool reload) _MUSTCHECK;
const char * cf_get_int(ConfElem *elem);
bool cf_set_int(ConfElem *elem, const char *value, PgSocket *console);
return NULL;
}
-void iniparser(const char *fn, ConfSection *sect_list, bool reload)
+bool iniparser(const char *fn, ConfSection *sect_list, bool reload)
{
char *buf;
char *p, *key, *val;
if (!reload)
exit(1);
else
- return;
+ return false;
}
p = buf;
}
free(buf);
+ return true;
}