diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
commit | 59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch) | |
tree | 2443ceace655d5d830c7c4d7c95869c6a0f93c5c /docs/examples/opensslthreadlock.c | |
parent | a622fd90b4c563a4fced20c5b88cb57537e809b0 (diff) |
remove unnecessary typecasting of malloc()
Diffstat (limited to 'docs/examples/opensslthreadlock.c')
-rw-r--r-- | docs/examples/opensslthreadlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/opensslthreadlock.c b/docs/examples/opensslthreadlock.c index 18a2f77fc..3ac7124b0 100644 --- a/docs/examples/opensslthreadlock.c +++ b/docs/examples/opensslthreadlock.c @@ -56,7 +56,7 @@ int thread_setup(void) { int i; - mutex_buf = (MUTEX_TYPE *)malloc(CRYPTO_num_locks( ) * sizeof(MUTEX_TYPE)); + mutex_buf = malloc(CRYPTO_num_locks( ) * sizeof(MUTEX_TYPE)); if (!mutex_buf) return 0; for (i = 0; i < CRYPTO_num_locks( ); i++) |