diff options
Diffstat (limited to 'common/config.c')
-rw-r--r-- | common/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/config.c b/common/config.c index 1c45e7e..11a06d7 100644 --- a/common/config.c +++ b/common/config.c @@ -7,12 +7,12 @@ config_t * config = NULL; char // returns 0 if ok, greater than 0 otherwise -config_load(void) +config_load(const char *config_file) { config = malloc(sizeof(config_t)); config_init(config); config_set_tab_width(config, 4); - if (config_read_file(config, CONFIG_PATH) != CONFIG_TRUE) { + if (config_read_file(config, config_file) != CONFIG_TRUE) { switch(config_error_type(config)) { case CONFIG_ERR_NONE: fprintf(stderr, "Configuration read error with none type reported... This shouldn't happen!\n"); |