aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/opensslthreadlock.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
commit59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch)
tree2443ceace655d5d830c7c4d7c95869c6a0f93c5c /docs/examples/opensslthreadlock.c
parenta622fd90b4c563a4fced20c5b88cb57537e809b0 (diff)
remove unnecessary typecasting of malloc()
Diffstat (limited to 'docs/examples/opensslthreadlock.c')
-rw-r--r--docs/examples/opensslthreadlock.c2
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++)