summaryrefslogtreecommitdiff
path: root/lib/base64.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
commit59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch)
tree2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/base64.c
parenta622fd90b4c563a4fced20c5b88cb57537e809b0 (diff)
downloadcurl-59e378f48fed849e8e41f0bc6a10bf7a1732ae8a.tar.gz
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/base64.c')
-rw-r--r--lib/base64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 0453624fb..37591f00c 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -160,7 +160,7 @@ size_t Curl_base64_encode(struct SessionHandle *data,
if(0 == insize)
insize = strlen(indata);
- base64data = output = (char*)malloc(insize*4/3+4);
+ base64data = output = malloc(insize*4/3+4);
if(NULL == output)
return 0;
@@ -171,7 +171,7 @@ size_t Curl_base64_encode(struct SessionHandle *data,
* so we copy it to a buffer, translate it, and use that instead.
*/
if(data) {
- convbuf = (char*)malloc(insize);
+ convbuf = malloc(insize);
if(!convbuf) {
free(output);
return 0;