ha_free(&cfg_file.content);
FLT_OT_RETURN_INT(retval);
}
- retval = readcfgfile(&cfg_file);
+ retval = parse_cfg(&cfg_file);
ha_free(&cfg_file.content);
}
int cfg_parse_listen(const char *file, int linenum, char **args, int inv);
int cfg_parse_track_sc_num(unsigned int *track_sc_num,
const char *arg, const char *end, char **err);
-int readcfgfile(const struct cfgfile *cfg);
+int parse_cfg(const struct cfgfile *cfg);
void cfg_register_keywords(struct cfg_kw_list *kwl);
void cfg_unregister_keywords(struct cfg_kw_list *kwl);
int check_config_validity(void);
* Only the two first ones can stop processing, the two others are just
* indicators.
*/
-int readcfgfile(const struct cfgfile *cfg)
+int parse_cfg(const struct cfgfile *cfg)
{
char *thisline = NULL;
int linesize = LINESIZE;
if (cfg_file.size < 0) {
goto error;
}
- ret = readcfgfile(&cfg_file);
+ ret = parse_cfg(&cfg_file);
ha_free(&cfg_file.content);
/* unregister SPOE sections and restore previous sections */
goto err;
}
- ret = readcfgfile(cfg);
+ ret = parse_cfg(cfg);
if (ret == -1)
goto err;