the 80 column police narrowed this source code! B-]

This commit is contained in:
Daniel Stenberg 2002-04-23 14:56:21 +00:00
parent 471f1d694f
commit db6d4bcf47

View file

@ -224,12 +224,14 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
} }
/* See if its already in our dns cache */ /* See if its already in our dns cache */
if (entry_id && curl_hash_find(data->hostcache, entry_id, entry_len+1, (void **) &p)) { if (entry_id &&
curl_hash_find(data->hostcache, entry_id, entry_len+1, (void **) &p)) {
_hostcache_return(p->addr); _hostcache_return(p->addr);
} }
/* Create a new cache entry */ /* Create a new cache entry */
p = (struct curl_dns_cache_entry *) malloc(sizeof(struct curl_dns_cache_entry)); p = (struct curl_dns_cache_entry *)
malloc(sizeof(struct curl_dns_cache_entry));
if (!p) { if (!p) {
_hostcache_return(NULL); _hostcache_return(NULL);
} }