From b0d4e0c74ab71b37689eadf3ba81de9cf63b5283 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Mon, 27 Nov 2006 10:00:28 +0000 Subject: [PATCH] (w32_msg_worker): Declare correctly. (w32_initialize): Don't cast w32_msg_worker. --- src/w32term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index 13167385234..985d77570e4 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -6282,7 +6282,7 @@ x_delete_display (dpyinfo) /* Set up use of W32. */ -DWORD w32_msg_worker (); +DWORD WINAPI w32_msg_worker (void * arg); void x_flush (struct frame * f) @@ -6387,8 +6387,8 @@ w32_initialize () PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE); hWindowsThread = CreateThread (NULL, 0, - (LPTHREAD_START_ROUTINE) w32_msg_worker, - 0, 0, &dwWindowsThreadId); + w32_msg_worker, + 0, 0, &dwWindowsThreadId); GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); } -- 2.39.2