1
0
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:
Matt Clarkson
2015-05-22 12:12:54 +01:00
parent 4941f78b95
commit 9a160dd4dd

View File

@@ -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);