diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:47:14 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 04:47:14 +0000 |
commit | a622fd90b4c563a4fced20c5b88cb57537e809b0 (patch) | |
tree | b0b3c28505d41d062f7828c0d1e13e3aa9a351a8 /lib/ssh.c | |
parent | 861b647e7b1da564b831a5b07312a30feb7b6c58 (diff) | |
download | curl-a622fd90b4c563a4fced20c5b88cb57537e809b0.tar.gz |
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |