summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sig.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-02-20 02:38:58 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-02-20 02:38:58 +0000
commit47b3c09d157426d8aceaf69f8eb464d3f2017ad9 (patch)
tree01c29d95789f24daedb9825fa0716be39892bcee /lib/librthread/rthread_sig.c
parent3e1fbba56f571b4a7a69c7331e9a091a550c6b6b (diff)
thrsigdivert() takes a sigset_t, not a pointer to one. Detected by
finally reading the lint warnings (sigh) ok tedu@
Diffstat (limited to 'lib/librthread/rthread_sig.c')
-rw-r--r--lib/librthread/rthread_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread_sig.c b/lib/librthread/rthread_sig.c
index 83dc5eee2b7..1437e2a0c97 100644
--- a/lib/librthread/rthread_sig.c
+++ b/lib/librthread/rthread_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sig.c,v 1.6 2008/10/03 04:22:37 guenther Exp $ */
+/* $OpenBSD: rthread_sig.c,v 1.7 2009/02/20 02:38:57 guenther Exp $ */
/*
* Copyright (c) 2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -47,7 +47,7 @@ sigwait(const sigset_t *set, int *sig)
{
int ret;
- ret = thrsigdivert(set);
+ ret = thrsigdivert(*set);
if (ret == -1)
return errno;
*sig = ret;