diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-06 03:31:27 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-06 03:31:27 +0000 |
commit | d0aca8017f3afe7671e6621f02c0f8e99412cb53 (patch) | |
tree | 9125c5f99ffd446de677f878066e31d49c52605e /lib/hostip4.c | |
parent | 91386937ff120d11f7bf24dc487f00751362a61c (diff) | |
download | curl-d0aca8017f3afe7671e6621f02c0f8e99412cb53.tar.gz |
compiler warning fix
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r-- | lib/hostip4.c | 4 |
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), |