diff options
Diffstat (limited to 'src/actionhelper.c')
-rw-r--r-- | src/actionhelper.c | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/src/actionhelper.c b/src/actionhelper.c index 5899024..d1891c9 100644 --- a/src/actionhelper.c +++ b/src/actionhelper.c @@ -307,13 +307,13 @@ int restore_make_links(cklist *from, cklist *to) { void print_INIT_result(int err) { if (!err) { - HELP("Initialized empty ckdb."); + hLOG("Initialized empty ckdb."); } } void print_ADD_result(int err) { if (!err) { - HELP("ckdb updated succesfully."); + hLOG("ckdb updated succesfully."); return; } sERR("Could not complete add transaction."); @@ -321,47 +321,30 @@ void print_ADD_result(int err) { void print_DEL_result(int err) { if (!err) { - HELP("ckdb updated succesfully."); - return; - } - if (err == -1) { - sERR("Could not complete delete transaction."); + hLOG("ckdb updated succesfully."); return; } + sERR("Could not complete delete transaction."); } void print_EDIT_result(int err) { - if (!err) { - return; - } + UNUSED(err); } void print_LIST_result(int err) { - if (!err) { - return; - } + UNUSED(err); } void print_SEARCH_result(int err) { - if (err == 2) { - ERR("No grep avaliable. Please make sure you have grep installed."); - return; - } - if (!err) { - return; - } - ERR("Wrong search."); + UNUSED(err); } void print_HELP_result(int err) { - if (!err) { - } + UNUSED(err); } void print_RESTORE_result(int err) { - if (err == -1) { - sERR("Restore failed.") - } + UNUSED(err); } void print_INIT_help() { |