summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio/bf_lbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/bio/bf_lbuf.c')
-rw-r--r--lib/libcrypto/bio/bf_lbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/bio/bf_lbuf.c b/lib/libcrypto/bio/bf_lbuf.c
index 7ed26ccec76..f0bd0d709ea 100644
--- a/lib/libcrypto/bio/bf_lbuf.c
+++ b/lib/libcrypto/bio/bf_lbuf.c
@@ -106,10 +106,10 @@ linebuffer_new(BIO *bi)
{
BIO_LINEBUFFER_CTX *ctx;
- ctx = (BIO_LINEBUFFER_CTX *)malloc(sizeof(BIO_LINEBUFFER_CTX));
+ ctx = malloc(sizeof(BIO_LINEBUFFER_CTX));
if (ctx == NULL)
return (0);
- ctx->obuf = (char *)malloc(DEFAULT_LINEBUFFER_SIZE);
+ ctx->obuf = malloc(DEFAULT_LINEBUFFER_SIZE);
if (ctx->obuf == NULL) {
free(ctx);
return (0);
@@ -281,7 +281,7 @@ linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr)
obs = (int)num;
p = ctx->obuf;
if ((obs > DEFAULT_LINEBUFFER_SIZE) && (obs != ctx->obuf_size)) {
- p = (char *)malloc((int)num);
+ p = malloc((int)num);
if (p == NULL)
goto malloc_error;
}