1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05:00

Fixed unused variable compiler warning.

This commit is contained in:
Dan Fandrich 2007-03-22 17:58:01 +00:00
parent 5eba84eed3
commit 3229a80c9f

View File

@ -127,7 +127,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
Curl_addrinfo *ai = NULL; Curl_addrinfo *ai = NULL;
struct hostent *h = NULL; struct hostent *h = NULL;
in_addr_t in; in_addr_t in;
struct SessionHandle *data = conn->data;
struct hostent *buf = NULL; struct hostent *buf = NULL;
(void)port; /* unused in IPv4 code */ (void)port; /* unused in IPv4 code */
@ -271,7 +270,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
else else
#endif /* HAVE_GETHOSTBYNAME_R_3 */ #endif /* HAVE_GETHOSTBYNAME_R_3 */
{ {
infof(data, "gethostbyname_r(2) failed for %s\n", hostname); infof(conn->data, "gethostbyname_r(2) failed for %s\n", hostname);
h = NULL; /* set return code to NULL */ h = NULL; /* set return code to NULL */
free(buf); free(buf);
} }
@ -283,7 +282,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
else { else {
h = gethostbyname(hostname); h = gethostbyname(hostname);
if (!h) if (!h)
infof(data, "gethostbyname(2) failed for %s\n", hostname); infof(conn->data, "gethostbyname(2) failed for %s\n", hostname);
#endif /*HAVE_GETHOSTBYNAME_R */ #endif /*HAVE_GETHOSTBYNAME_R */
} }