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/cversion.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/cversion.c')
-rw-r--r-- | src/lib/libcrypto/cversion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index 1fe92a4bfa..4bbe74bd5b 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c | |||
@@ -71,7 +71,7 @@ const char | |||
71 | #ifdef DATE | 71 | #ifdef DATE |
72 | static char buf[sizeof(DATE) + 11]; | 72 | static char buf[sizeof(DATE) + 11]; |
73 | 73 | ||
74 | BIO_snprintf(buf, sizeof buf, "built on: %s", DATE); | 74 | (void) snprintf(buf, sizeof buf, "built on: %s", DATE); |
75 | return (buf); | 75 | return (buf); |
76 | #else | 76 | #else |
77 | return("built on: date not available"); | 77 | return("built on: date not available"); |
@@ -81,7 +81,7 @@ const char | |||
81 | #ifdef CFLAGS | 81 | #ifdef CFLAGS |
82 | static char buf[sizeof(CFLAGS) + 11]; | 82 | static char buf[sizeof(CFLAGS) + 11]; |
83 | 83 | ||
84 | BIO_snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); | 84 | (void) snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); |
85 | return (buf); | 85 | return (buf); |
86 | #else | 86 | #else |
87 | return("compiler: information not available"); | 87 | return("compiler: information not available"); |
@@ -91,7 +91,7 @@ const char | |||
91 | #ifdef PLATFORM | 91 | #ifdef PLATFORM |
92 | static char buf[sizeof(PLATFORM) + 11]; | 92 | static char buf[sizeof(PLATFORM) + 11]; |
93 | 93 | ||
94 | BIO_snprintf(buf, sizeof buf, "platform: %s", PLATFORM); | 94 | (void) snprintf(buf, sizeof buf, "platform: %s", PLATFORM); |
95 | return (buf); | 95 | return (buf); |
96 | #else | 96 | #else |
97 | return("platform: information not available"); | 97 | return("platform: information not available"); |