diff --git a/src/info.c b/src/info.c index ff79eaa0f2e058a3971012ad558797d3ef54a085..9a37e1e79f8823aa8b76c8d593c3de10b061bdb7 100644 --- a/src/info.c +++ b/src/info.c @@ -416,7 +416,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op ctx->subaction_mask = 0xffffffff; break; default: - return -1; + return -ENOTSUP; } return 0; } diff --git a/src/list.c b/src/list.c index 202dab24d66f7f7c215f5c7e07db587b4675f400..593e7d29354ff21bec86260ddd709ed278cb555d 100644 --- a/src/list.c +++ b/src/list.c @@ -220,7 +220,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op ctx->match_providers = 1; break; default: - return -1; + return -ENOTSUP; } return 0; diff --git a/src/search.c b/src/search.c index 62ca816b1194ababbd5251c3fb99ce5826d9a871..9a71747c1a50f3745be0e2669ac0f8595d9b9659 100644 --- a/src/search.c +++ b/src/search.c @@ -103,7 +103,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt ictx->show_all = 1; break; default: - return -1; + return -ENOTSUP; } return 0; } diff --git a/src/upgrade.c b/src/upgrade.c index 14457b581d974b75d01ab668f7402a07cee01a0e..6c3eafa92e05b2a3c4c32baf970cfac74fe2b5d3 100644 --- a/src/upgrade.c +++ b/src/upgrade.c @@ -42,7 +42,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt uctx->solver_flags |= APK_SOLVERF_LATEST; break; default: - return -1; + return -ENOTSUP; } return 0; } diff --git a/src/ver.c b/src/ver.c index 07929376549540e4c6d0b0b45722e0b29d0b87d2..3a083591bc5e624c5239982d78578c8619d0589c 100644 --- a/src/ver.c +++ b/src/ver.c @@ -90,7 +90,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt ictx->all_tags = 1; break; default: - return -1; + return -ENOTSUP; } return 0; }