aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-23 14:56:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-23 14:56:21 +0000
commitdb6d4bcf47513bb6c1aaf50dae7cd3c19ae5f901 (patch)
treef0b285ddbc04e5c6fe083494a29fb48c3b5141ae /lib/hostip.c
parent471f1d694f1495941e338410374f64a44c5a4175 (diff)
the 80 column police narrowed this source code! B-]
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 640780c68..7bdb3ee7d 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -224,12 +224,14 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
}
/* 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);
}
/* 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) {
_hostcache_return(NULL);
}