From 303fcbc2a2ec1bbddd30f61c7f6f6e8ff4ee3d7f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:32:14 +0000 Subject: 2002-05-07 Roland McGrath * cthreads.h (cthread_sp): Cast to vm_address_t instead of int. (mutex_unlock): Cast to void * instead of int. --- libthreads/cthreads.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h index 787827aa..c1dfd44c 100644 --- a/libthreads/cthreads.h +++ b/libthreads/cthreads.h @@ -26,6 +26,17 @@ /* * HISTORY * $Log: cthreads.h,v $ + * Revision 1.16 2001/03/31 23:01:01 roland + * 2001-03-31 Roland McGrath + * + * * cthreads.h: Fix obsolescent #endif syntax. + * * cthread_internals.h: Likewise. + * * cancel-cond.c: Likewise. + * * stack.c: Likewise. + * * cthreads.c: Likewise. + * * cprocs.c: Likewise. + * * call.c: Likewise. + * * Revision 1.15 1999/06/13 18:54:42 roland * 1999-06-13 Roland McGrath * @@ -223,7 +234,7 @@ #include #else #include -#define cthread_sp() ((int) __thread_stack_pointer ()) +#define cthread_sp() ((vm_address_t) __thread_stack_pointer ()) #endif #if c_plusplus || __STDC__ @@ -397,7 +408,7 @@ extern void __mutex_unlock_solid (void *mutex); /* roland@gnu */ #define mutex_unlock(m) \ MACRO_BEGIN \ if (spin_unlock(&(m)->held), \ - cthread_queue_head(&(m)->queue, int) != 0) { \ + cthread_queue_head(&(m)->queue, void *) != 0) { \ __mutex_unlock_solid(m); \ } \ MACRO_END -- cgit v1.2.3