Skip to content
Snippets Groups Projects
Unverified Commit 300ab148 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

asyn-thread: make local variables #ifdefed proper

parent c549faa8
No related merge requests found
...@@ -637,8 +637,8 @@ int Curl_resolver_getsock(struct Curl_easy *data, curl_socket_t *socks) ...@@ -637,8 +637,8 @@ int Curl_resolver_getsock(struct Curl_easy *data, curl_socket_t *socks)
#endif #endif
#ifdef USE_HTTPSRR_ARES #ifdef USE_HTTPSRR_ARES
if(data->state.async.thdata.channel) { if(td->channel) {
ret_val = Curl_ares_getsock(data, data->state.async.thdata.channel, socks); ret_val = Curl_ares_getsock(data, td->channel, socks);
for(socketi = 0; socketi < (MAX_SOCKSPEREASYHANDLE - 1); socketi++) for(socketi = 0; socketi < (MAX_SOCKSPEREASYHANDLE - 1); socketi++)
if(!ARES_GETSOCK_READABLE(ret_val, socketi) && if(!ARES_GETSOCK_READABLE(ret_val, socketi) &&
!ARES_GETSOCK_WRITABLE(ret_val, socketi)) !ARES_GETSOCK_WRITABLE(ret_val, socketi))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment