aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-06-29 00:18:50 +0200
committerRich Salz <rsalz@openssl.org>2016-07-20 07:21:53 -0400
commite8aa8b6c8f6d4e2b2bbd5e5721d977b0a6aa3cee (patch)
tree9112c06d1c60edbbe94b3407f33538a0f9bf1c97 /test
parentc106eaa8ed7c24900e4367fc85cae1a77bc4e5ae (diff)
downloadopenssl-e8aa8b6c8f6d4e2b2bbd5e5721d977b0a6aa3cee.zip
openssl-e8aa8b6c8f6d4e2b2bbd5e5721d977b0a6aa3cee.tar.gz
openssl-e8aa8b6c8f6d4e2b2bbd5e5721d977b0a6aa3cee.tar.bz2
Fix a few if(, for(, while( inside code.
Fix some indentation at the same time Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1292)
Diffstat (limited to 'test')
-rw-r--r--test/asynctest.c2
-rw-r--r--test/verify_extra_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/asynctest.c b/test/asynctest.c
index 026536b..5057ce1 100644
--- a/test/asynctest.c
+++ b/test/asynctest.c
@@ -56,7 +56,7 @@ static int waitfd(void *args)
waitctx = ASYNC_get_wait_ctx(job);
if (waitctx == NULL)
return 0;
- if(!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL))
+ if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL))
return 0;
ASYNC_pause_job();
diff --git a/test/verify_extra_test.c b/test/verify_extra_test.c
index cbc6d8c..cc05bc2 100644
--- a/test/verify_extra_test.c
+++ b/test/verify_extra_test.c
@@ -122,7 +122,7 @@ static int test_alt_chains_cert_forgery(const char *roots_f,
i = X509_verify_cert(sctx);
- if(i == 0 && X509_STORE_CTX_get_error(sctx) == X509_V_ERR_INVALID_CA) {
+ if (i == 0 && X509_STORE_CTX_get_error(sctx) == X509_V_ERR_INVALID_CA) {
/* This is the result we were expecting: Test passed */
ret = 1;
}