diff options
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); } |