diff options
author | 2007-04-27 19:40:08 +0000 | |
---|---|---|
committer | 2007-04-27 19:40:08 +0000 | |
commit | 39175c04d914b4bd01174274de7b13d96285283e (patch) | |
tree | 6ecf4ea7694dcbcff2e8fbaf46eb4843c0c92389 /lib/libpthread/uthread/uthread_cancel.c | |
parent | also map the seconds PCI memory space (diff) | |
download | wireguard-openbsd-39175c04d914b4bd01174274de7b13d96285283e.tar.xz wireguard-openbsd-39175c04d914b4bd01174274de7b13d96285283e.zip |
fix thread_continuation_t typedef and use passed curthread instead of
calling _get_curthread() again. fixes some lint warnings. okay marc@
Diffstat (limited to 'lib/libpthread/uthread/uthread_cancel.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_cancel.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libpthread/uthread/uthread_cancel.c b/lib/libpthread/uthread/uthread_cancel.c index c5eb358aff9..560e034527b 100644 --- a/lib/libpthread/uthread/uthread_cancel.c +++ b/lib/libpthread/uthread/uthread_cancel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_cancel.c,v 1.14 2005/12/21 01:40:23 millert Exp $ */ +/* $OpenBSD: uthread_cancel.c,v 1.15 2007/04/27 19:40:08 kurt Exp $ */ /* * David Leonard <d@openbsd.org>, 1999. Public domain. */ @@ -6,7 +6,7 @@ #include <pthread.h> #include "pthread_private.h" -static void finish_cancellation(void *arg); +static void finish_cancellation(struct pthread *arg); int pthread_cancel(pthread_t pthread) @@ -228,10 +228,8 @@ _thread_leave_cancellation_point(void) } static void -finish_cancellation(void *arg) +finish_cancellation(struct pthread *curthread) { - struct pthread *curthread = _get_curthread(); - curthread->continuation = NULL; curthread->interrupted = 0; |