From f1f8c6bef1563b8752967631ad024953584964d7 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 6 Aug 1998 07:39:17 +0000 Subject: Removing compiler warnings. Thu Aug 6 15:19:22 1998 Ross Johnson * create.c (pthread_create): Typecast (HANDLE) NULL. Typecast (unsigned (*)(void *)) start_routine. --- ChangeLog | 3 +++ create.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0e873d..f6e6c30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Thu Aug 6 15:19:22 1998 Ross Johnson + * create.c (pthread_create): Typecast (HANDLE) NULL. + Typecast (unsigned (*)(void *)) start_routine. + * condvar.c (pthread_cond_init): Add address-of operator & to arg 1 of pthread_mutex_init() call. (pthread_cond_destroy): Add address-of operator & to diff --git a/create.c b/create.c index cccda44..b350b74 100644 --- a/create.c +++ b/create.c @@ -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; } -- cgit v1.2.3