mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
made the code fit within 80 cols
This commit is contained in:
parent
0d4ddfa743
commit
5d94ff5974
@ -379,7 +379,9 @@ static bool init_resolve_thread (struct connectdata *conn,
|
|||||||
td->stderr_file = stderr;
|
td->stderr_file = stderr;
|
||||||
|
|
||||||
#ifdef _WIN32_WCE
|
#ifdef _WIN32_WCE
|
||||||
td->thread_hnd=(HANDLE) CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) THREAD_FUNC,conn,0,&td->thread_id);
|
td->thread_hnd = (HANDLE) CreateThread(NULL, 0,
|
||||||
|
(LPTHREAD_START_ROUTINE) THREAD_FUNC,
|
||||||
|
conn, 0, &td->thread_id);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
td->thread_hnd = (HANDLE) _beginthreadex(NULL, 0, THREAD_FUNC,
|
td->thread_hnd = (HANDLE) _beginthreadex(NULL, 0, THREAD_FUNC,
|
||||||
@ -459,8 +461,9 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
|||||||
TRACE(("%s() thread stuck?!, ", THREAD_NAME));
|
TRACE(("%s() thread stuck?!, ", THREAD_NAME));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Thread finished before timeout; propagate Winsock error to this thread.
|
/* Thread finished before timeout; propagate Winsock error to this
|
||||||
* 'conn->async.done = TRUE' is set in Curl_addrinfo4/6_callback().
|
* thread. 'conn->async.done = TRUE' is set in
|
||||||
|
* Curl_addrinfo4/6_callback().
|
||||||
*/
|
*/
|
||||||
WSASetLastError(conn->async.status);
|
WSASetLastError(conn->async.status);
|
||||||
GetExitCodeThread(td->thread_hnd, &td->thread_status);
|
GetExitCodeThread(td->thread_hnd, &td->thread_status);
|
||||||
|
Loading…
Reference in New Issue
Block a user