summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/thread-win32.c2
-rw-r--r--uisimulator/x11/thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/win32/thread-win32.c b/uisimulator/win32/thread-win32.c
index c2e9cef42b..ca973b6662 100644
--- a/uisimulator/win32/thread-win32.c
+++ b/uisimulator/win32/thread-win32.c
@@ -32,7 +32,7 @@ DWORD WINAPI runthread (LPVOID lpParameter)
return 0;
}
-int create_thread(void* fp, void* sp, int stk_size)
+int create_thread(void (*fp)(void), void* sp, int stk_size)
{
DWORD dwThreadID;
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c
index 4288c0ffcb..41f1fad8a7 100644
--- a/uisimulator/x11/thread.c
+++ b/uisimulator/x11/thread.c
@@ -101,7 +101,7 @@ void newfunc(void (*func)(void))
}
-int create_thread(void* fp, void* sp, int stk_size)
+int create_thread(void (*fp)(void), void* sp, int stk_size)
{
pthread_t tid;
int i;