diff options
author | Yang Tse <yangsita@gmail.com> | 2011-06-21 16:06:56 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-06-21 16:06:56 +0200 |
commit | d9e71809cbc85ec591ba78013acf0b01628275f8 (patch) | |
tree | fdec7da3aea66fad589651e3a22459cf712c298d /lib | |
parent | a7cc54a5a86b543c6a8be524de6f8defc9ef4135 (diff) |
asyn-thread: fix compiler warning
compiler warning: variable is initialized but not referenced
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asyn-thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index cc444da4c..3341686d9 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -486,7 +486,6 @@ CURLcode Curl_resolver_wait_resolv(struct connectdata *conn, struct Curl_dns_entry **entry) { struct thread_data *td = (struct thread_data*) conn->async.os_specific; - struct SessionHandle *data = conn->data; CURLcode rc = CURLE_OK; DEBUGASSERT(conn && td); @@ -638,7 +637,6 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, int error; char sbuf[NI_MAXSERV]; int pf = PF_INET; - struct SessionHandle *data = conn->data; *waitp = 0; /* default to synchronous response */ @@ -677,12 +675,12 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn, } /* fall-back to blocking version */ - infof(data, "init_resolve_thread() failed for %s; %s\n", + infof(conn->data, "init_resolve_thread() failed for %s; %s\n", hostname, Curl_strerror(conn, ERRNO)); error = Curl_getaddrinfo_ex(hostname, sbuf, &hints, &res); if(error) { - infof(data, "getaddrinfo() failed for %s:%d; %s\n", + infof(conn->data, "getaddrinfo() failed for %s:%d; %s\n", hostname, port, Curl_strerror(conn, SOCKERRNO)); return NULL; } |