From 60784dc1a92121efe9301ac57476024fe64f968b Mon Sep 17 00:00:00 2001 From: bje Date: Sat, 20 Feb 1999 05:11:51 +0000 Subject: 1999-02-21 Ben Elliston * pthread.h (pthread_exit): The return type of this function is void, not int. * exit.c (pthread_exit): Do not return 0. --- ChangeLog | 7 +++++++ exit.c | 10 ++-------- pthread.h | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1d340f6..d734c80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-02-21 Ben Elliston + + * pthread.h (pthread_exit): The return type of this function is + void, not int. + + * exit.c (pthread_exit): Do not return 0. + Sat Feb 20 16:03:30 1999 Ross Johnson * dll.c (DLLMain): Expand TryEnterCriticalSection support test. diff --git a/exit.c b/exit.c index 2d0cddd..7e72c7d 100644 --- a/exit.c +++ b/exit.c @@ -13,7 +13,7 @@ * Code contributed by John E. Bossom . */ -int +void pthread_exit (void *value_ptr) /* * ------------------------------------------------------ @@ -40,10 +40,4 @@ pthread_exit (void *value_ptr) _pthread_callUserDestroyRoutines((pthread_t) pthread_getspecific(_pthread_selfThreadKey)); _endthreadex ((unsigned) value_ptr); - - return (0); - -} /* pthread_exit */ - -/* */ - +} diff --git a/pthread.h b/pthread.h index 2b47407..da85c5c 100644 --- a/pthread.h +++ b/pthread.h @@ -842,7 +842,7 @@ int pthread_detach (pthread_t tid); int pthread_equal (pthread_t t1, pthread_t t2); -int pthread_exit (void *value_ptr); +void pthread_exit (void *value_ptr); int pthread_join (pthread_t thread, void **value_ptr); -- cgit v1.2.3