mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
Simplify error number printing
Can put the value straight into the DEBUG_TRACE
This commit is contained in:
@@ -2566,9 +2566,7 @@ static int mg_join_thread(pthread_t threadid)
|
||||
result = -1;
|
||||
dwevent = WaitForSingleObject(threadid, INFINITE);
|
||||
if (dwevent == WAIT_FAILED) {
|
||||
int err = GetLastError();
|
||||
(void)err;
|
||||
DEBUG_TRACE("WaitForSingleObject() failed, error %d", err);
|
||||
DEBUG_TRACE("WaitForSingleObject() failed, error %d", ERRNO);
|
||||
} else {
|
||||
if (dwevent == WAIT_OBJECT_0) {
|
||||
CloseHandle(threadid);
|
||||
|
||||
Reference in New Issue
Block a user