Pārlūkot izejas kodu

Simplify error number printing

Can put the value straight into the DEBUG_TRACE
Matt Clarkson 10 gadi atpakaļ
vecāks
revīzija
9a160dd4dd
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      src/civetweb.c

+ 1 - 3
src/civetweb.c

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