aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-11-12 11:50:38 +0000
committerMatt Caswell <matt@openssl.org>2015-11-20 23:37:17 +0000
commite38565f536b7674ef507564b5c646712b1d7eed4 (patch)
tree05e23dc2c04c195a1c2cac94f9a153e80847e97d /crypto/async/arch
parent625146d9fbb74651e6158af7db0e76b899c39c9e (diff)
downloadopenssl-e38565f536b7674ef507564b5c646712b1d7eed4.zip
openssl-e38565f536b7674ef507564b5c646712b1d7eed4.tar.gz
openssl-e38565f536b7674ef507564b5c646712b1d7eed4.tar.bz2
Fix some style issues
There were a number of places where the async code did not conform to the OpenSSL coding style. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/arch')
-rw-r--r--crypto/async/arch/async_posix.c3
-rw-r--r--crypto/async/arch/async_win.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c
index 814930f..78bf61c 100644
--- a/crypto/async/arch/async_posix.c
+++ b/crypto/async/arch/async_posix.c
@@ -76,7 +76,8 @@ int async_fibre_init(async_fibre *fibre)
{
void *stack = NULL;
- if (!(stack = OPENSSL_malloc(STACKSIZE))) {
+ stack = OPENSSL_malloc(STACKSIZE);
+ if (stack == NULL) {
return 0;
}
diff --git a/crypto/async/arch/async_win.c b/crypto/async/arch/async_win.c
index 5cb14ce..fce3c48 100644
--- a/crypto/async/arch/async_win.c
+++ b/crypto/async/arch/async_win.c
@@ -72,7 +72,7 @@ int async_fibre_init_dispatcher(async_fibre *fibre)
dispatcher =
(LPVOID) CRYPTO_get_thread_local(CRYPTO_THREAD_LOCAL_ASYNC_DISPATCH);
- if (!dispatcher) {
+ if (dispatcher == NULL) {
fibre->fibre = ConvertThreadToFiber(NULL);
CRYPTO_set_thread_local(CRYPTO_THREAD_LOCAL_ASYNC_DISPATCH,
(void *)fibre->fibre);
@@ -125,7 +125,7 @@ int async_set_pool(STACK_OF(ASYNC_JOB) *poolin, size_t curr_size,
{
struct winpool *pool;
pool = OPENSSL_malloc(sizeof *pool);
- if (!pool)
+ if (pool == NULL)
return 0;
pool->pool = poolin;