diff options
author | rpj <rpj> | 1998-08-06 07:39:17 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-08-06 07:39:17 +0000 |
commit | f1f8c6bef1563b8752967631ad024953584964d7 (patch) | |
tree | cf8f322f286899bac1962e44a1591d03b9bf998e /create.c | |
parent | d744426ab4fb090632d6499c1f668b8f37abe469 (diff) |
Removing compiler warnings.
Thu Aug 6 15:19:22 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* create.c (pthread_create): Typecast (HANDLE) NULL.
Typecast (unsigned (*)(void *)) start_routine.
Diffstat (limited to 'create.c')
-rw-r--r-- | create.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ pthread_create(pthread_t *thread, void * (*start_routine) (void *), void * arg) { - HANDLE handle = NULL; + HANDLE handle = (HANDLE) NULL; unsigned flags; void * security = NULL; DWORD threadID; @@ -90,7 +90,7 @@ pthread_create(pthread_t *thread, } /* We call a generic wrapper which then calls the start routine. */ - new_thread->call.routine = start_routine; + new_thread->call.routine = (unsigned (*)(void *)) start_routine; new_thread->call.arg = arg; /* Start running, not suspended. */ @@ -103,7 +103,7 @@ pthread_create(pthread_t *thread, flags, &threadID); - if (handle == NULL) + if (handle == (HANDLE) NULL) { ret = EAGAIN; } |