summaryrefslogtreecommitdiffstats
path: root/apps/ecparam.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-04-28 21:28:14 +0200
committerRich Salz <rsalz@openssl.org>2015-04-28 21:28:14 +0200
commitb196e7d936fb377d9c5b305748ac25ff0e53ef6d (patch)
treec855f0808899e5e7ef3a704c35f464ca36014964 /apps/ecparam.c
parentERR_ cleanup (diff)
downloadopenssl-b196e7d936fb377d9c5b305748ac25ff0e53ef6d.tar.xz
openssl-b196e7d936fb377d9c5b305748ac25ff0e53ef6d.zip
remove malloc casts
Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/ecparam.c')
-rw-r--r--apps/ecparam.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c
index 049fc78092..f316793cd3 100644
--- a/apps/ecparam.c
+++ b/apps/ecparam.c
@@ -388,8 +388,7 @@ int ecparam_main(int argc, char **argv)
if ((tmp_len = (size_t)BN_num_bytes(ec_cofactor)) > buf_len)
buf_len = tmp_len;
- buffer = (unsigned char *)OPENSSL_malloc(buf_len);
-
+ buffer = OPENSSL_malloc(buf_len);
if (buffer == NULL) {
perror("OPENSSL_malloc");
goto end;