From a622fd90b4c563a4fced20c5b88cb57537e809b0 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 6 Sep 2008 04:47:14 +0000 Subject: remove unnecessary typecasting of calloc() --- lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/file.c') 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; -- cgit v1.2.3