diff options
author | jkim <jkim@FreeBSD.org> | 2015-03-20 19:16:18 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-03-20 19:16:18 +0000 |
commit | d962da16eb69c08beb3d1028d1edbb20241cfead (patch) | |
tree | bf9f5c26fab5c18be80ab30783e5c7e5082594fc /crypto/openssl/crypto/o_dir_test.c | |
parent | 778929f2cccf19c8b69d8bcd0da2243bf9e3fb95 (diff) | |
parent | 038f65e5fb1f35e1e485aa4781cda353c4e903f4 (diff) | |
download | FreeBSD-src-d962da16eb69c08beb3d1028d1edbb20241cfead.zip FreeBSD-src-d962da16eb69c08beb3d1028d1edbb20241cfead.tar.gz |
Merge OpenSSL 1.0.1m.
Diffstat (limited to 'crypto/openssl/crypto/o_dir_test.c')
-rw-r--r-- | crypto/openssl/crypto/o_dir_test.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/crypto/openssl/crypto/o_dir_test.c b/crypto/openssl/crypto/o_dir_test.c index 3d75ecb..7cdbbbc 100644 --- a/crypto/openssl/crypto/o_dir_test.c +++ b/crypto/openssl/crypto/o_dir_test.c @@ -1,5 +1,6 @@ /* crypto/o_dir.h -*- mode:C; c-file-style: "eay" -*- */ -/* Copied from Richard Levitte's (richard@levitte.org) LP library. All +/* + * Copied from Richard Levitte's (richard@levitte.org) LP library. All * symbol names have been changed, with permission from the author. */ @@ -38,33 +39,30 @@ #include "o_dir.h" #if defined OPENSSL_SYS_UNIX || defined OPENSSL_SYS_WIN32 || defined OPENSSL_SYS_WINCE -#define CURRDIR "." +# define CURRDIR "." #elif defined OPENSSL_SYS_VMS -#define CURRDIR "SYS$DISK:[]" +# define CURRDIR "SYS$DISK:[]" #else -#error "No supported platform defined!" +# error "No supported platform defined!" #endif 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); + if (!OPENSSL_DIR_end(&ctx)) { + perror("test_dir"); + exit(2); } - exit(0); + exit(0); } |