]> git.pond.sub.org Git - empserver/commitdiff
(loc_Exit_Handler, empth_init) [_WIN32]: Correct the function declaration
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 27 Nov 2007 03:29:35 +0000 (03:29 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 27 Nov 2007 03:29:35 +0000 (03:29 +0000)
for loc_Exit_Handler().  Remove unnecessary cast.

src/lib/empthread/ntthread.c

index e7e70436c8603308d1eef9d8e9f76db5b39a1189..fffb47777e1c934dd25b92fd88a6924a3e0d1631 100644 (file)
@@ -298,7 +298,7 @@ loc_BlockThisThread(void)
  * System-Shutdown will initiate a shutdown.
  * This is done by calling empth_request_shutdown()
  */
-static BOOL
+static BOOL WINAPI
 loc_Exit_Handler(DWORD fdwCtrlType)
 {
     switch (fdwCtrlType) { 
@@ -392,7 +392,7 @@ empth_init(void **ctx_ptr, int flags)
         logerror("Failed to create shutdown event %lu", GetLastError());
        return 0;
     }
-    SetConsoleCtrlHandler((PHANDLER_ROUTINE)loc_Exit_Handler, TRUE);
+    SetConsoleCtrlHandler(loc_Exit_Handler, TRUE);
 
     /* Create the global Thread context. */
     pThread = malloc(sizeof(*pThread));