aboutsummaryrefslogtreecommitdiffstats
path: root/src/ck.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/ck.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/ck.c')
-rw-r--r--src/ck.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ck.c b/src/ck.c
index b2119e7..335d72f 100644
--- a/src/ck.c
+++ b/src/ck.c
@@ -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;
}