diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-06-21 13:03:16 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-06-21 13:03:16 +0300 |
commit | 2433c9d23b03c18006c12d37306f6e151c713607 (patch) | |
tree | 083d9ecd9b8082892f2af070619e97e11f2d1a15 /src | |
parent | 0683b069ba8b4da6ca456a28a4435daec6d52f69 (diff) | |
download | apk-tools-2433c9d23b03c18006c12d37306f6e151c713607.tar.gz apk-tools-2433c9d23b03c18006c12d37306f6e151c713607.tar.bz2 apk-tools-2433c9d23b03c18006c12d37306f6e151c713607.tar.xz apk-tools-2433c9d23b03c18006c12d37306f6e151c713607.zip |
openssl: explicitly ignore BIO_reset() return value
This caused some -Wall errors on certain gcc versions due
to BIO_reset() being a macro with explicit cast.
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto_openssl.c b/src/crypto_openssl.c index b32f238..73f1879 100644 --- a/src/crypto_openssl.c +++ b/src/crypto_openssl.c @@ -101,7 +101,7 @@ int apk_pkey_load(struct apk_pkey *pkey, int dirfd, const char *fn) key = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL); if (!key) { - BIO_reset(bio); + (void)BIO_reset(bio); key = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL); } ERR_clear_error(); |