From 8de0117e810bf2887ba81b54345d86f49dd504a8 Mon Sep 17 00:00:00 2001 From: beck <> Date: Tue, 15 Apr 2014 16:21:04 +0000 Subject: Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions where the return value is ignored changing to (void) snprintf. ok deraadt@ --- src/lib/libcrypto/cversion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/cversion.c') 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 #ifdef DATE static char buf[sizeof(DATE) + 11]; - BIO_snprintf(buf, sizeof buf, "built on: %s", DATE); + (void) snprintf(buf, sizeof buf, "built on: %s", DATE); return (buf); #else return("built on: date not available"); @@ -81,7 +81,7 @@ const char #ifdef CFLAGS static char buf[sizeof(CFLAGS) + 11]; - BIO_snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); + (void) snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); return (buf); #else return("compiler: information not available"); @@ -91,7 +91,7 @@ const char #ifdef PLATFORM static char buf[sizeof(PLATFORM) + 11]; - BIO_snprintf(buf, sizeof buf, "platform: %s", PLATFORM); + (void) snprintf(buf, sizeof buf, "platform: %s", PLATFORM); return (buf); #else return("platform: information not available"); -- cgit v1.2.3-55-g6feb