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/ck.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/ck.c')
-rw-r--r-- | src/ck.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -32,10 +32,12 @@ #include "dblayer.h" #include "cklist.h" #include "ckutil.h" +#include "ckerrlog.h" int main(int argc, char *argv[]) { + initialize_errlog(); UserOpt opt; - Conf conf = {.VC_dir = NULL, .SCRT_dir = NULL}; + Conf conf = {.vc_dir = NULL, .scrt_dir = NULL}; /* get user opt */ switch(parse_action(argc, argv, &opt)) { case APR_HELP: @@ -76,5 +78,6 @@ int main(int argc, char *argv[]) { error: free_user_opt(&opt); free_conf(&conf); + report_errlog(); return 0; } |