diff options
author | beck <> | 2014-04-15 16:21:04 +0000 |
---|---|---|
committer | beck <> | 2014-04-15 16:21:04 +0000 |
commit | 8de0117e810bf2887ba81b54345d86f49dd504a8 (patch) | |
tree | 8c2058c07d3cdac3caf00950e53159c1c251f257 /src/lib/libcrypto/err/err.c | |
parent | fd934c882a62cc862a41725de129e7a623ce16a3 (diff) | |
download | openbsd-8de0117e810bf2887ba81b54345d86f49dd504a8.tar.gz openbsd-8de0117e810bf2887ba81b54345d86f49dd504a8.tar.bz2 openbsd-8de0117e810bf2887ba81b54345d86f49dd504a8.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 'src/lib/libcrypto/err/err.c')
-rw-r--r-- | src/lib/libcrypto/err/err.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index 0251248baf..ae9a209ad7 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
@@ -872,13 +872,13 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len) | |||
872 | rs=ERR_reason_error_string(e); | 872 | rs=ERR_reason_error_string(e); |
873 | 873 | ||
874 | if (ls == NULL) | 874 | if (ls == NULL) |
875 | BIO_snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); | 875 | (void) snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); |
876 | if (fs == NULL) | 876 | if (fs == NULL) |
877 | BIO_snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); | 877 | (void) snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); |
878 | if (rs == NULL) | 878 | if (rs == NULL) |
879 | BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); | 879 | (void) snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); |
880 | 880 | ||
881 | BIO_snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, | 881 | (void) snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, |
882 | fs?fs:fsbuf, rs?rs:rsbuf); | 882 | fs?fs:fsbuf, rs?rs:rsbuf); |
883 | if (strlen(buf) == len-1) | 883 | if (strlen(buf) == len-1) |
884 | { | 884 | { |