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/o_dir_test.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/o_dir_test.c')
-rw-r--r-- | lib/libcrypto/o_dir_test.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/lib/libcrypto/o_dir_test.c b/lib/libcrypto/o_dir_test.c index 238717c1108..2973458a947 100644 --- a/lib/libcrypto/o_dir_test.c +++ b/lib/libcrypto/o_dir_test.c @@ -43,26 +43,24 @@ #error "No supported platform defined!" #endif -int main() +int +main() { - OPENSSL_DIR_CTX *ctx = NULL; - const char *result; + OPENSSL_DIR_CTX *ctx = NULL; + const char *result; - while((result = OPENSSL_DIR_read(&ctx, CURRDIR)) != NULL) - { - printf("%s\n", result); - } + while ((result = OPENSSL_DIR_read(&ctx, CURRDIR)) != NULL) { + printf("%s\n", result); + } - if (errno) - { - perror("test_dir"); - exit(1); - } + if (errno) { + perror("test_dir"); + exit(1); + } - if (!OPENSSL_DIR_end(&ctx)) - { - perror("test_dir"); - exit(2); - } - exit(0); + if (!OPENSSL_DIR_end(&ctx)) { + perror("test_dir"); + exit(2); + } + exit(0); } |