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/hostip4.c | |
parent | 861b647e7b1da564b831a5b07312a30feb7b6c58 (diff) |
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r-- | lib/hostip4.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ /* |