aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-30 11:10:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-30 11:10:50 +0000
commit7438c378bef220a335e03df28c7596a49fdda980 (patch)
tree52c56eae675cdc3c58b61bbe34016a9775f5dc56 /lib/hostip.c
parent0e0caf7c063c282fb35b8ab87fde1d38fe32d489 (diff)
prevent compiler warning
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 5a173990b..cb63b4e1f 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -562,6 +562,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
memset(buf, 0, CURL_NAMELOOKUP_SIZE);
#ifdef HAVE_GETHOSTBYNAME_R_5
/* Solaris, IRIX and more */
+ (void)res; /* prevent compiler warning */
while(!h) {
h = gethostbyname_r(hostname,
(struct hostent *)buf,