summaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
commita622fd90b4c563a4fced20c5b88cb57537e809b0 (patch)
treeb0b3c28505d41d062f7828c0d1e13e3aa9a351a8 /lib/ssh.c
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
downloadcurl-a622fd90b4c563a4fced20c5b88cb57537e809b0.tar.gz
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index c86b2530c..1d4e0280c 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -1461,7 +1461,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
else {
sshc->readdir_currLen = strlen(sshc->readdir_longentry);
sshc->readdir_totalLen = 80 + sshc->readdir_currLen;
- sshc->readdir_line = (char *)calloc(sshc->readdir_totalLen, 1);
+ sshc->readdir_line = calloc(sshc->readdir_totalLen, 1);
if(!sshc->readdir_line) {
Curl_safefree(sshc->readdir_filename);
sshc->readdir_filename = NULL;
@@ -2021,7 +2021,7 @@ static CURLcode ssh_init(struct connectdata *conn)
if(data->state.proto.ssh)
return CURLE_OK;
- ssh = (struct SSHPROTO *)calloc(sizeof(struct SSHPROTO), 1);
+ ssh = calloc(sizeof(struct SSHPROTO), 1);
if(!ssh)
return CURLE_OUT_OF_MEMORY;