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/hostip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hostip4.c') diff --git a/lib/hostip4.c b/lib/hostip4.c index b3c358838..a7d94c87a 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -150,7 +150,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, else { int h_errnop; - buf = (struct hostent *)calloc(CURL_HOSTENT_SIZE, 1); + buf = calloc(CURL_HOSTENT_SIZE, 1); if(!buf) return NULL; /* major failure */ /* -- cgit v1.2.3