mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
prevent compiler warning
This commit is contained in:
parent
0e0caf7c06
commit
7438c378be
@ -562,6 +562,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
|
|||||||
memset(buf, 0, CURL_NAMELOOKUP_SIZE);
|
memset(buf, 0, CURL_NAMELOOKUP_SIZE);
|
||||||
#ifdef HAVE_GETHOSTBYNAME_R_5
|
#ifdef HAVE_GETHOSTBYNAME_R_5
|
||||||
/* Solaris, IRIX and more */
|
/* Solaris, IRIX and more */
|
||||||
|
(void)res; /* prevent compiler warning */
|
||||||
while(!h) {
|
while(!h) {
|
||||||
h = gethostbyname_r(hostname,
|
h = gethostbyname_r(hostname,
|
||||||
(struct hostent *)buf,
|
(struct hostent *)buf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user