remove unnecessary typecasting of calloc()

This commit is contained in:
Yang Tse
2008-09-06 04:47:14 +00:00
parent 861b647e7b
commit a622fd90b4
15 changed files with 25 additions and 27 deletions

View File

@@ -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;