From d0aca8017f3afe7671e6621f02c0f8e99412cb53 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 6 Feb 2007 03:31:27 +0000 Subject: compiler warning fix --- lib/hostip4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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), -- cgit v1.2.3