diff options
author | Ian Lynagh <igloo@earth.li> | 2011-08-01 01:07:12 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-08-01 01:07:12 +0100 |
commit | 96ebe2fa43b9ee98cd82d31760c57db0fea18495 (patch) | |
tree | 93e6995b75c08c84f2e7fc908ec3634cd64b0e92 /rts/posix | |
parent | b4a01788a1a833de64cba041c796fa35e0275220 (diff) | |
download | haskell-96ebe2fa43b9ee98cd82d31760c57db0fea18495.tar.gz |
Remove some antiquated C constructs
Fixes validate on amd64/Linux with:
SRC_CC_OPTS += -Wmissing-parameter-type
SRC_CC_OPTS += -Wold-style-declaration
SRC_CC_OPTS += -Wold-style-definition
Diffstat (limited to 'rts/posix')
-rw-r--r-- | rts/posix/OSThreads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index 29cb23eb6d..cc3baeb1bb 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -101,14 +101,14 @@ waitCondition ( Condition* pCond, Mutex* pMut ) } void -yieldThread() +yieldThread(void) { sched_yield(); return; } void -shutdownThread() +shutdownThread(void) { pthread_exit(NULL); } @@ -123,7 +123,7 @@ createOSThread (OSThreadId* pId, OSThreadProc *startProc, void *param) } OSThreadId -osThreadId() +osThreadId(void) { return pthread_self(); } |