summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sig.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-12-13 06:04:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-12-13 06:04:54 +0000
commitfabba4b0fc511c15d3ea033f62337e56398b0a1a (patch)
treed0e1b770c5ad8c5be3eac0198f3d1e3d75d0451d /lib/librthread/rthread_sig.c
parent1e92ae8cd984bc9ad364492493deaf80356133b2 (diff)
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))