summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_cancel.c
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2007-04-27 19:40:08 +0000
committerkurt <kurt@openbsd.org>2007-04-27 19:40:08 +0000
commit39175c04d914b4bd01174274de7b13d96285283e (patch)
tree6ecf4ea7694dcbcff2e8fbaf46eb4843c0c92389 /lib/libpthread/uthread/uthread_cancel.c
parentalso map the seconds PCI memory space (diff)
downloadwireguard-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.c8
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;