diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-03-22 17:58:01 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-03-22 17:58:01 +0000 |
commit | 3229a80c9f50d7521c68e4b3cb2234624a37b40c (patch) | |
tree | d4cd4c132e982ff932176084e178f56eb3edf334 /lib/hostip4.c | |
parent | 5eba84eed3beab88a82e8d90d0bb876e18cad7de (diff) | |
download | curl-3229a80c9f50d7521c68e4b3cb2234624a37b40c.tar.gz |
Fixed unused variable compiler warning.
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r-- | lib/hostip4.c | 5 |
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 */ } |