summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/err/err.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-04-15 16:21:04 +0000
committerbeck <beck@openbsd.org>2014-04-15 16:21:04 +0000
commitea4b21aae2adb138912fdc26d056cefee2267ce3 (patch)
treedd0dff07c2755d15c1e31f5ce688ff7f9f33225b /lib/libssl/src/crypto/err/err.c
parentadd -s (two-byte signed decimal display) to od(1), as mandated by POSIX; (diff)
downloadwireguard-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.c8
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)
{