summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_sig.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2005-12-13 06:04:53 +0000
committertedu <tedu@openbsd.org>2005-12-13 06:04:53 +0000
commite6193ec8d7860e053fd695db678e362c44f838c7 (patch)
tree6e661a3d12fa1529a0628a792e669fc4250e4902 /lib/librthread/rthread_sig.c
parentrebuild (diff)
downloadwireguard-openbsd-e6193ec8d7860e053fd695db678e362c44f838c7.tar.xz
wireguard-openbsd-e6193ec8d7860e053fd695db678e362c44f838c7.zip
update thrsleep and thrwakeup - first arg changed from long to void *
Diffstat (limited to 'lib/librthread/rthread_sig.c')
-rw-r--r--lib/librthread/rthread_sig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/librthread/rthread_sig.c b/lib/librthread/rthread_sig.c
index 5fcb9002e86..18d1e4a8a87 100644
--- a/lib/librthread/rthread_sig.c
+++ b/lib/librthread/rthread_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sig.c,v 1.1 2005/12/03 18:16:19 tedu Exp $ */
+/* $OpenBSD: rthread_sig.c,v 1.2 2005/12/13 06:04:53 tedu Exp $ */
/*
* Copyright (c) 2004 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -36,8 +36,8 @@
#include "rthread.h"
-int thrwakeup(long);
-int thrsleep(long, int, void *);
+int thrwakeup(void *);
+int thrsleep(void *, int, void *);
int thrsigdivert(const sigset_t *);
int
@@ -60,7 +60,7 @@ sigwait_handler(int sig)
{
pthread_t self = pthread_self();
self->sigpend = sig;
- thrwakeup((long)&self->sigpend);
+ thrwakeup(&self->sigpend);
}
typedef void (*sigfn)(int);
@@ -79,7 +79,7 @@ sigwait(const sigset_t *set, int *sig)
}
thrsigdivert(set);
- thrsleep((long)&self->sigpend, 0, NULL);
+ thrsleep(&self->sigpend, 0, NULL);
for (i = 0; i < NSIG; i++) {
if (mask & (1 << i))