diff options
| author | mrezai | 2016-04-10 17:48:59 +0430 |
|---|---|---|
| committer | mrezai | 2016-04-10 17:48:59 +0430 |
| commit | c860574d8ba246b5e2c59578f24accd2ace5e9bc (patch) | |
| tree | 5c8f90fc94bc49da9b35c2f532f186aa0817e6bc /drivers/builtin_openssl2/crypto/o_dir_test.c | |
| parent | d454e64f429affb89de036eed6daa5c6e5278492 (diff) | |
| download | godot-c860574d8ba246b5e2c59578f24accd2ace5e9bc.tar.gz godot-c860574d8ba246b5e2c59578f24accd2ace5e9bc.tar.zst godot-c860574d8ba246b5e2c59578f24accd2ace5e9bc.zip | |
Diffstat (limited to 'drivers/builtin_openssl2/crypto/o_dir_test.c')
| -rw-r--r-- | drivers/builtin_openssl2/crypto/o_dir_test.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/drivers/builtin_openssl2/crypto/o_dir_test.c b/drivers/builtin_openssl2/crypto/o_dir_test.c index 3d75ecb00..60436b72c 100644 --- a/drivers/builtin_openssl2/crypto/o_dir_test.c +++ b/drivers/builtin_openssl2/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 +/* crypto/o_dir.h */ +/* + * 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); } |
