diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-10-04 01:20:13 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-10-04 01:20:13 +0300 |
commit | fa41863b03bbf67a7ad4edad9328b0cdc48e497b (patch) | |
tree | e7e4dd5986364c29a3d51ac661ce9b133effc868 /src/confparser.c | |
parent | bc2899dd69fce0f1868dbfad3394ef8b3dc48069 (diff) | |
download | ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.tar.gz ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.tar.bz2 ck-fa41863b03bbf67a7ad4edad9328b0cdc48e497b.zip |
store configs in subfolders and error/logging infrastructure
Diffstat (limited to 'src/confparser.c')
-rw-r--r-- | src/confparser.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); } } |