aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/opensslthreadlock.c
diff options
context:
space:
mode:
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++)