From 25ccc84ac00a7b3975dfdb0cc415522ca7793f0f Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 29 Apr 2018 12:41:25 +0300 Subject: Styling and nitpicks --- src/ck.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/ck.c') diff --git a/src/ck.c b/src/ck.c index a9ef001..a63eb63 100644 --- a/src/ck.c +++ b/src/ck.c @@ -28,27 +28,22 @@ * * -------------------------------------------------------------------------- */ -#include -#include -#include - -#include "actionparser.h" #include "actions.h" -#include "confparser.h" #include "dblayer.h" +#include "ckutil.h" int main(int argc, char *argv[]) { UserOpt opt; - switch(parseAction(argc, argv, &opt)) { - case OPR_HELP: + switch(parse_action(argc, argv, &opt)) { + case APR_HELP: free_user_opt(&opt); - printParserHelp(); + print_parser_help(); return 0; - case OPR_ERR: - printParserError(&opt); + case APR_ERR: + print_parser_error(&opt); free_user_opt(&opt); return 1; - case OPR_OK: + case APR_OK: break; } -- cgit v1.2.3