summaryrefslogtreecommitdiff
path: root/lib/file.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/file.c
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
downloadcurl-a622fd90b4c563a4fced20c5b88cb57537e809b0.tar.gz
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c
index 08d26c54a..6dd63b6a2 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -202,7 +202,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done)
Curl_reset_reqproto(conn);
if(!data->state.proto.file) {
- file = (struct FILEPROTO *)calloc(sizeof(struct FILEPROTO), 1);
+ file = calloc(sizeof(struct FILEPROTO), 1);
if(!file) {
free(real_path);
return CURLE_OUT_OF_MEMORY;