summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-06 03:31:27 +0000
committerYang Tse <yangsita@gmail.com>2007-02-06 03:31:27 +0000
commitd0aca8017f3afe7671e6621f02c0f8e99412cb53 (patch)
tree9125c5f99ffd446de677f878066e31d49c52605e /lib/hostip4.c
parent91386937ff120d11f7bf24dc487f00751362a61c (diff)
downloadcurl-d0aca8017f3afe7671e6621f02c0f8e99412cb53.tar.gz
compiler warning fix
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 685156bad..49556db66 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -124,7 +124,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
int port,
int *waitp)
{
-#if defined(HAVE_GETHOSTBYNAME_R_3) || defined(HAVE_GETHOSTBYNAME_R_6)
+#if defined(HAVE_GETHOSTBYNAME_R_3)
int res;
#endif
Curl_addrinfo *ai = NULL;
@@ -181,7 +181,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
#ifdef HAVE_GETHOSTBYNAME_R_6
/* Linux */
- res=gethostbyname_r(hostname,
+ (void)gethostbyname_r(hostname,
(struct hostent *)buf,
(char *)buf + sizeof(struct hostent),
CURL_HOSTENT_SIZE - sizeof(struct hostent),