modernize malloc call
authorderaadt <deraadt@openbsd.org>
Mon, 21 Apr 2014 11:19:28 +0000 (11:19 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 21 Apr 2014 11:19:28 +0000 (11:19 +0000)
lib/libcrypto/cryptlib.c
lib/libssl/src/crypto/cryptlib.c

index addc27e..0058e83 100644 (file)
@@ -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);
index addc27e..0058e83 100644 (file)
@@ -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);