From 9fd09bd645cae899f0e7172602a5246760744842 Mon Sep 17 00:00:00 2001 From: jsing Date: Tue, 15 Apr 2014 13:41:53 +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. --- lib/libcrypto/o_dir_test.c | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'lib/libcrypto/o_dir_test.c') 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); } -- cgit v1.2.3-59-g8ed1b