aboutsummaryrefslogtreecommitdiffstats
path: root/src/confparser.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-10-04 01:20:13 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-10-04 01:20:13 +0300
commitfa41863b03bbf67a7ad4edad9328b0cdc48e497b (patch)
treee7e4dd5986364c29a3d51ac661ce9b133effc868 /src/confparser.c
parentbc2899dd69fce0f1868dbfad3394ef8b3dc48069 (diff)
downloadck-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.c12
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);
}
}