aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.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/ftp.c
parenta622fd90b4c563a4fced20c5b88cb57537e809b0 (diff)
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 7f1c6aa73..4021c500b 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -550,7 +550,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
if(clipamount) {
ftpc->cache_size = clipamount;
- ftpc->cache = (char *)malloc((int)ftpc->cache_size);
+ ftpc->cache = malloc((int)ftpc->cache_size);
if(ftpc->cache)
memcpy(ftpc->cache, ftpc->linestart_resp, (int)ftpc->cache_size);
else
@@ -2751,7 +2751,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
case FTP_PWD:
if(ftpcode == 257) {
- char *dir = (char *)malloc(nread+1);
+ char *dir = malloc(nread+1);
char *store=dir;
char *ptr=&data->state.buffer[4]; /* start on the first letter */