diff options
author | 2014-04-15 13:41:53 +0000 | |
---|---|---|
committer | 2014-04-15 13:41:53 +0000 | |
commit | 9fd09bd645cae899f0e7172602a5246760744842 (patch) | |
tree | 349887202eb3ec6c620c9cb7e429500645894370 /lib/libcrypto/uid.c | |
parent | remove some vms/windows holdouts. (diff) | |
download | wireguard-openbsd-9fd09bd645cae899f0e7172602a5246760744842.tar.xz wireguard-openbsd-9fd09bd645cae899f0e7172602a5246760744842.zip |
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.
Diffstat (limited to 'lib/libcrypto/uid.c')
-rw-r--r-- | lib/libcrypto/uid.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/libcrypto/uid.c b/lib/libcrypto/uid.c index b1fd52badad..fcfa05ce0c8 100644 --- a/lib/libcrypto/uid.c +++ b/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 <sys/types.h> -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 - - - |