aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-03-22 17:58:01 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-03-22 17:58:01 +0000
commit3229a80c9f50d7521c68e4b3cb2234624a37b40c (patch)
treed4cd4c132e982ff932176084e178f56eb3edf334
parent5eba84eed3beab88a82e8d90d0bb876e18cad7de (diff)
Fixed unused variable compiler warning.
-rw-r--r--lib/hostip4.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 3b040a48f..d2cd81911 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -127,7 +127,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
Curl_addrinfo *ai = NULL;
struct hostent *h = NULL;
in_addr_t in;
- struct SessionHandle *data = conn->data;
struct hostent *buf = NULL;
(void)port; /* unused in IPv4 code */
@@ -271,7 +270,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
else
#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 */
free(buf);
}
@@ -283,7 +282,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
else {
h = gethostbyname(hostname);
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 */
}