X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fo_dir_test.c;h=7cdbbbc403e72d408337017f0e6bb76ebaa1af16;hp=3d75ecb0050c63f0cc1fd4acbfd60c2a48d66110;hb=521246e6085d5e1530c58ab8a50ce898d280ceed;hpb=a2400fcab884f2851e3e7845c6955a3ddb8bcad4;ds=sidebyside diff --git a/crypto/o_dir_test.c b/crypto/o_dir_test.c index 3d75ecb005..7cdbbbc403 100644 --- a/crypto/o_dir_test.c +++ b/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); }