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/ck.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ck.c') 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; } -- cgit v1.2.3