diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-29 12:41:25 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-29 12:41:25 +0300 |
commit | 25ccc84ac00a7b3975dfdb0cc415522ca7793f0f (patch) | |
tree | f732a005ddac7ecfbe1efaf8948dc61f5b706e95 /src/ck.c | |
parent | 0a5257ea63cce0cebc93eb71e51dbbb3eb14a9a3 (diff) | |
download | ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.gz ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.tar.bz2 ck-25ccc84ac00a7b3975dfdb0cc415522ca7793f0f.zip |
Styling and nitpicks
Diffstat (limited to 'src/ck.c')
-rw-r--r-- | src/ck.c | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -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; } |