From b196e7d936fb377d9c5b305748ac25ff0e53ef6d Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 28 Apr 2015 15:28:14 -0400 Subject: remove malloc casts Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte --- ssl/bio_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl/bio_ssl.c') diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index 473b3ff519..da98ea03d8 100644 --- a/ssl/bio_ssl.c +++ b/ssl/bio_ssl.c @@ -103,7 +103,7 @@ static int ssl_new(BIO *bi) { BIO_SSL *bs; - bs = (BIO_SSL *)OPENSSL_malloc(sizeof(BIO_SSL)); + bs = OPENSSL_malloc(sizeof(BIO_SSL)); if (bs == NULL) { BIOerr(BIO_F_SSL_NEW, ERR_R_MALLOC_FAILURE); return (0); -- cgit v1.2.3