changeset 31821:3f3381845ae9

Make function declarations proper prototypes.
author reimar
date Mon, 02 Aug 2010 17:26:28 +0000
parents 837b16c7f35c
children b9aa9b0d8e4b
files loader/win32.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Mon Aug 02 17:19:45 2010 +0000
+++ b/loader/win32.c	Mon Aug 02 17:26:28 2010 +0000
@@ -141,7 +141,7 @@
 }
 static unsigned int localcount_stub(void);
 static void longcount_stub(long long*);
-static unsigned int (*localcount)()=localcount_stub;
+static unsigned int (*localcount)(void)=localcount_stub;
 static void (*longcount)(long long*)=longcount_stub;
 
 static pthread_mutex_t memmut = PTHREAD_MUTEX_INITIALIZER;
@@ -2758,7 +2758,7 @@
 }
 
 static int WINAPI expEnumDisplayMonitors(void *dc, RECT *r,
-    int WINAPI (*callback_proc)(), void *callback_param)
+    int WINAPI (*callback_proc)(HMONITOR, HDC, LPRECT, LPARAM), void *callback_param)
 {
     dbgprintf("EnumDisplayMonitors(0x%x, 0x%x, 0x%x, 0x%x) => ?\n",
 	dc, r, callback_proc, callback_param);
@@ -2858,7 +2858,7 @@
     return 0;
 }
 
-static int WINAPI expEnumWindows(int (*callback_func)(), void *callback_param)
+static int WINAPI expEnumWindows(int (*callback_func)(HWND, LPARAM), void *callback_param)
 {
     int i, i2;
     dbgprintf("EnumWindows(0x%x, 0x%x) => 1\n", callback_func, callback_param);