From fa41863b03bbf67a7ad4edad9328b0cdc48e497b Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 4 Oct 2018 01:20:13 +0300 Subject: store configs in subfolders and error/logging infrastructure --- src/confparser.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/confparser.c') diff --git a/src/confparser.c b/src/confparser.c index ea9bb90..7f61037 100644 --- a/src/confparser.c +++ b/src/confparser.c @@ -19,8 +19,8 @@ const char * const CONFIG_NAME = "/ckrc"; void conf_values_initialize(Conf *c) { - c->SCRT_dir = NULL; - c->VC_dir = NULL; + c->scrt_dir = NULL; + c->vc_dir = NULL; } int remove_newline(char buff[]) { @@ -128,11 +128,11 @@ int config_file_parse(Conf *conf, UserOpt *opt) { } void free_conf(Conf *conf) { - if (conf->VC_dir) { - free(conf->VC_dir); + if (conf->vc_dir) { + free(conf->vc_dir); } - if (conf->SCRT_dir) { - free(conf->SCRT_dir); + if (conf->scrt_dir) { + free(conf->scrt_dir); } } -- cgit v1.2.3