summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-05-23 08:13:24 +0000
committermtm <mtm@FreeBSD.org>2003-05-23 08:13:24 +0000
commit7f8de979fc762dc4b610f5f1bc9b9845a9c638a2 (patch)
tree53a0c9500e857d2333d3913d8ab1f65551e11852 /lib/libthr
parent8fccddb300a4ef3a0cbba4c1645fb4035e3ed92e (diff)
downloadFreeBSD-src-7f8de979fc762dc4b610f5f1bc9b9845a9c638a2.zip
FreeBSD-src-7f8de979fc762dc4b610f5f1bc9b9845a9c638a2.tar.gz
note to self: do not confuse void* with int.
Approved by: re/blanket libthr
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 059af3d..e394324 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -173,7 +173,7 @@ _pthread_exit(void *status)
/* If we're the last thread, call it quits */
if (TAILQ_EMPTY(&_thread_list))
- exit(curthread->ret);
+ exit(0);
/*
* Retire the architecture specific id so that it can be used for
OpenPOWER on IntegriCloud