diff options
author | Brian Smith <brian@briansmith.org> | 2016-02-07 22:36:04 +0300 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2016-02-12 01:07:56 +0300 |
commit | 5ba06897be4fb001113f6e8ea2398538dbbb88f2 (patch) | |
tree | f880255fcbb4de630e0827e02ae741d155b9b5c9 /crypto/dsa | |
parent | 46a4d6d7051775589180e46b3974b2c94dc9f2d7 (diff) |
Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result.
C has implicit conversion of |void *| to other pointer types so these
casts are unnecessary. Clean them up to make the code easier to read
and to make it easier to find dangerous casts.
Change-Id: I26988a672e8ed4d69c75cfbb284413999b475464
Reviewed-on: https://boringssl-review.googlesource.com/7102
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa.c b/crypto/dsa/dsa.c index ebe55e84..1e446920 100644 --- a/crypto/dsa/dsa.c +++ b/crypto/dsa/dsa.c @@ -86,7 +86,7 @@ static CRYPTO_EX_DATA_CLASS g_ex_data_class = CRYPTO_EX_DATA_CLASS_INIT; DSA *DSA_new(void) { - DSA *dsa = (DSA *)OPENSSL_malloc(sizeof(DSA)); + DSA *dsa = OPENSSL_malloc(sizeof(DSA)); if (dsa == NULL) { OPENSSL_PUT_ERROR(DSA, ERR_R_MALLOC_FAILURE); return NULL; |