diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-21 11:19:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-21 11:19:29 +0000 |
commit | 1dfb6134cb0988e1d143814f726a9db212cab2f0 (patch) | |
tree | 4fc152a986c4d3d8b4c88ff0e1362e5560ee6fb7 /lib | |
parent | 60ef2e93eff92f429627cd4c5ef077d33081f01c (diff) |
modernize malloc call
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/cryptlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/cryptlib.c b/lib/libcrypto/cryptlib.c index addc27eb080..0058e8328b3 100644 --- a/lib/libcrypto/cryptlib.c +++ b/lib/libcrypto/cryptlib.c @@ -241,7 +241,7 @@ CRYPTO_get_new_dynlockid(void) } CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK); - pointer = (CRYPTO_dynlock *)malloc(sizeof(CRYPTO_dynlock)); + pointer = malloc(sizeof(CRYPTO_dynlock)); if (pointer == NULL) { CRYPTOerr(CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID, ERR_R_MALLOC_FAILURE); |