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/uid.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'src/lib/libcrypto/uid.c') diff --git a/src/lib/libcrypto/uid.c b/src/lib/libcrypto/uid.c index b1fd52bada..fcfa05ce0c 100644 --- a/src/lib/libcrypto/uid.c +++ b/src/lib/libcrypto/uid.c @@ -60,30 +60,32 @@ #include OPENSSL_UNISTD -int OPENSSL_issetugid(void) - { +int +OPENSSL_issetugid(void) +{ return issetugid(); - } +} #elif defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) -int OPENSSL_issetugid(void) - { +int +OPENSSL_issetugid(void) +{ return 0; - } +} #else #include OPENSSL_UNISTD #include -int OPENSSL_issetugid(void) - { - if (getuid() != geteuid()) return 1; - if (getgid() != getegid()) return 1; +int +OPENSSL_issetugid(void) +{ + if (getuid() + != geteuid()) return 1; + if (getgid() + != getegid()) return 1; return 0; - } +} #endif - - - -- cgit v1.2.3-55-g6feb