aboutsummaryrefslogtreecommitdiffstats
path: root/src/ck.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-04-29 12:41:25 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-04-29 12:41:25 +0300
commit25ccc84ac00a7b3975dfdb0cc415522ca7793f0f (patch)
treef732a005ddac7ecfbe1efaf8948dc61f5b706e95 /src/ck.c
parent0a5257ea63cce0cebc93eb71e51dbbb3eb14a9a3 (diff)
downloadck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.gz
ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.bz2
ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.zip
Styling and nitpicks
Diffstat (limited to 'src/ck.c')
-rw-r--r--src/ck.c19
1 files changed, 7 insertions, 12 deletions
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 <stdio.h>
-#include <string.h>
-#include <sqlite3.h>
-
-#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;
}