summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_exit.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
commit31f2b819c68f20ff188724669d3044a0680e3ceb (patch)
tree3cbec5633c5b1de6974d08e11807ee0ce2110a82 /lib/libthr/thread/thr_exit.c
parent2cacffb02b10bf82a1a5ee4d88c3092821839d16 (diff)
downloadFreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.zip
FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.tar.gz
WARNS level 4 cleanup.
Diffstat (limited to 'lib/libthr/thread/thr_exit.c')
-rw-r--r--lib/libthr/thread/thr_exit.c6
1 files changed, 2 insertions, 4 deletions
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: */
OpenPOWER on IntegriCloud