summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSThreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index 9cf42aa246..7dcf0eed15 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -134,7 +134,7 @@ int
createOSThread (OSThreadId* pId, char *name STG_UNUSED,
OSThreadProc *startProc, void *param)
{
- int result = pthread_create(pId, NULL, (void *(*)(void *))startProc, param);
+ int result = pthread_create(pId, NULL, startProc, param);
if (!result) {
pthread_detach(*pId);
#if defined(HAVE_PTHREAD_SETNAME_NP)