From 69a8d2dcc19aed0d1116ba2ecd81cce5ae736c94 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 15 Apr 2014 13:42:55 +0000 Subject: First pass at applying KNF to the OpenSSL code, which almost makes it readable. This pass is whitespace only and can readily be verified using tr and md5. --- src/lib/libcrypto/cversion.c | 55 +++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 29 deletions(-) (limited to 'src/lib/libcrypto/cversion.c') diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index ea9f25fd16..1fe92a4bfa 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c @@ -62,56 +62,53 @@ #include "buildinf.h" #endif -const char *SSLeay_version(int t) - { +const char +*SSLeay_version(int t) +{ if (t == SSLEAY_VERSION) return OPENSSL_VERSION_TEXT; - if (t == SSLEAY_BUILT_ON) - { + if (t == SSLEAY_BUILT_ON) { #ifdef DATE - static char buf[sizeof(DATE)+11]; + static char buf[sizeof(DATE) + 11]; - BIO_snprintf(buf,sizeof buf,"built on: %s",DATE); - return(buf); + BIO_snprintf(buf, sizeof buf, "built on: %s", DATE); + return (buf); #else return("built on: date not available"); #endif - } - if (t == SSLEAY_CFLAGS) - { + } + if (t == SSLEAY_CFLAGS) { #ifdef CFLAGS - static char buf[sizeof(CFLAGS)+11]; + static char buf[sizeof(CFLAGS) + 11]; - BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS); - return(buf); + BIO_snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); + return (buf); #else return("compiler: information not available"); #endif - } - if (t == SSLEAY_PLATFORM) - { + } + if (t == SSLEAY_PLATFORM) { #ifdef PLATFORM - static char buf[sizeof(PLATFORM)+11]; + static char buf[sizeof(PLATFORM) + 11]; - BIO_snprintf(buf,sizeof buf,"platform: %s", PLATFORM); - return(buf); + BIO_snprintf(buf, sizeof buf, "platform: %s", PLATFORM); + return (buf); #else return("platform: information not available"); #endif - } - if (t == SSLEAY_DIR) - { + } + if (t == SSLEAY_DIR) { #ifdef OPENSSLDIR return "OPENSSLDIR: \"" OPENSSLDIR "\""; #else return "OPENSSLDIR: N/A"; #endif - } - return("not available"); - } - -unsigned long SSLeay(void) - { - return(SSLEAY_VERSION_NUMBER); } + return("not available"); +} +unsigned long +SSLeay(void) +{ + return (SSLEAY_VERSION_NUMBER); +} -- cgit v1.2.3-55-g6feb