diff options
author | 2014-04-15 16:21:04 +0000 | |
---|---|---|
committer | 2014-04-15 16:21:04 +0000 | |
commit | ea4b21aae2adb138912fdc26d056cefee2267ce3 (patch) | |
tree | dd0dff07c2755d15c1e31f5ce688ff7f9f33225b /lib/libssl/src/crypto/err/err.c | |
parent | add -s (two-byte signed decimal display) to od(1), as mandated by POSIX; (diff) | |
download | wireguard-openbsd-ea4b21aae2adb138912fdc26d056cefee2267ce3.tar.xz wireguard-openbsd-ea4b21aae2adb138912fdc26d056cefee2267ce3.zip |
Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions
where the return value is ignored changing to (void) snprintf.
ok deraadt@
Diffstat (limited to 'lib/libssl/src/crypto/err/err.c')
-rw-r--r-- | lib/libssl/src/crypto/err/err.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c index 0251248bafd..ae9a209ad7b 100644 --- a/lib/libssl/src/crypto/err/err.c +++ b/lib/libssl/src/crypto/err/err.c @@ -872,13 +872,13 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len) rs=ERR_reason_error_string(e); if (ls == NULL) - BIO_snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); + (void) snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); if (fs == NULL) - BIO_snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); + (void) snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); if (rs == NULL) - BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); + (void) snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); - BIO_snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, + (void) snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, fs?fs:fsbuf, rs?rs:rsbuf); if (strlen(buf) == len-1) { |