diff options
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index 6b22c2c10..e223c1f92 100644 --- a/lib/http.c +++ b/lib/http.c @@ -971,7 +971,7 @@ static send_buffer *add_buffer_init(void) { send_buffer *blonk; - blonk=(send_buffer *)malloc(sizeof(send_buffer)); + blonk = malloc(sizeof(send_buffer)); if(blonk) { memset(blonk, 0, sizeof(send_buffer)); return blonk; @@ -1193,7 +1193,7 @@ CURLcode add_buffer(send_buffer *in, const void *inptr, size_t size) new_rb = realloc(in->buffer, new_size); else /* create a new buffer */ - new_rb = (char *)malloc(new_size); + new_rb = malloc(new_size); if(!new_rb) { /* If we failed, we cleanup the whole buffer and return error */ |