diff options
author | 2014-04-21 11:12:49 +0000 | |
---|---|---|
committer | 2014-04-21 11:12:49 +0000 | |
commit | 3c6fe066dc73ba56622777c440a3221989a53a7c (patch) | |
tree | d10b641b47041d94d2b400ed2a3d6bc7789379b5 /lib/libssl/src/crypto/bio/bio_lib.c | |
parent | we'll do fine without casting NULL to struct foo * / void * (diff) | |
download | wireguard-openbsd-3c6fe066dc73ba56622777c440a3221989a53a7c.tar.xz wireguard-openbsd-3c6fe066dc73ba56622777c440a3221989a53a7c.zip |
Bring malloc/calloc/realloc sequences to modern standard
ok guenther
Diffstat (limited to 'lib/libssl/src/crypto/bio/bio_lib.c')
-rw-r--r-- | lib/libssl/src/crypto/bio/bio_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/bio/bio_lib.c b/lib/libssl/src/crypto/bio/bio_lib.c index 47ab0c8a455..3deca5b7443 100644 --- a/lib/libssl/src/crypto/bio/bio_lib.c +++ b/lib/libssl/src/crypto/bio/bio_lib.c @@ -68,7 +68,7 @@ BIO_new(BIO_METHOD *method) { BIO *ret = NULL; - ret = (BIO *)malloc(sizeof(BIO)); + ret = malloc(sizeof(BIO)); if (ret == NULL) { BIOerr(BIO_F_BIO_NEW, ERR_R_MALLOC_FAILURE); return (NULL); |