diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-06-19 16:09:30 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-06-19 16:10:13 +0300 |
commit | d89c219173aeaea174deb8dd7477e1ea7ea71510 (patch) | |
tree | 0aaac0c4735e2f3e27205b7e8a717a157518428b /src/app_convndx.c | |
parent | 17684141fe9d895361262b10c4c229fbcff6e702 (diff) | |
download | apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.gz apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.bz2 apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.tar.xz apk-tools-d89c219173aeaea174deb8dd7477e1ea7ea71510.zip |
reduce misuse of error codes from errno.h
Diffstat (limited to 'src/app_convndx.c')
-rw-r--r-- | src/app_convndx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_convndx.c b/src/app_convndx.c index 1aa37f5..440fb3f 100644 --- a/src/app_convndx.c +++ b/src/app_convndx.c @@ -61,7 +61,7 @@ static int load_index(struct conv_ctx *ctx, struct apk_istream *is) apk_istream_gunzip_mpart(is, apk_sign_ctx_mpart_cb, &ctx->sctx), load_apkindex, ctx, apk_ctx_get_id_cache(ctx->ac)); apk_sign_ctx_free(&ctx->sctx); - if (r >= 0 && ctx->found == 0) r = -ENOMSG; + if (r >= 0 && ctx->found == 0) r = -APKE_V2NDX_FORMAT; return r; } |