From 3229a80c9f50d7521c68e4b3cb2234624a37b40c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 22 Mar 2007 17:58:01 +0000 Subject: [PATCH] Fixed unused variable compiler warning. --- lib/hostip4.c | 5 ++--- 1 file 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 */ }