From 31f2b819c68f20ff188724669d3044a0680e3ceb Mon Sep 17 00:00:00 2001 From: davidxu Date: Tue, 4 Apr 2006 02:57:49 +0000 Subject: WARNS level 4 cleanup. --- lib/libthr/thread/thr_exit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libthr/thread/thr_exit.c') diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index f6147054..d438ac5 100644 --- a/lib/libthr/thread/thr_exit.c +++ b/lib/libthr/thread/thr_exit.c @@ -44,7 +44,7 @@ void _pthread_exit(void *status); __weak_reference(_pthread_exit, pthread_exit); void -_thread_exit(char *fname, int lineno, char *msg) +_thread_exit(const char *fname, int lineno, const char *msg) { /* Write an error message to the standard error file descriptor: */ @@ -105,9 +105,7 @@ _pthread_exit(void *status) while (curthread->cleanup != NULL) { pthread_cleanup_pop(1); } - if (curthread->attr.cleanup_attr != NULL) { - curthread->attr.cleanup_attr(curthread->attr.arg_attr); - } + /* Check if there is thread specific data: */ if (curthread->specific != NULL) { /* Run the thread-specific data destructors: */ -- cgit v1.1