aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.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/hostip.c
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 604dbbbdc..f223889dd 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -332,7 +332,7 @@ Curl_cache_addr(struct SessionHandle *data,
entry_len = strlen(entry_id);
/* Create a new cache entry */
- dns = (struct Curl_dns_entry *) calloc(sizeof(struct Curl_dns_entry), 1);
+ dns = calloc(sizeof(struct Curl_dns_entry), 1);
if(!dns) {
free(entry_id);
return NULL;