diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-02-20 02:38:58 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-02-20 02:38:58 +0000 |
commit | 47b3c09d157426d8aceaf69f8eb464d3f2017ad9 (patch) | |
tree | 01c29d95789f24daedb9825fa0716be39892bcee /lib/librthread | |
parent | 3e1fbba56f571b4a7a69c7331e9a091a550c6b6b (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')
-rw-r--r-- | lib/librthread/rthread.h | 4 | ||||
-rw-r--r-- | lib/librthread/rthread_sig.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/librthread/rthread.h b/lib/librthread/rthread.h index 0d8dafd08cd..769e513e5fc 100644 --- a/lib/librthread/rthread.h +++ b/lib/librthread/rthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.h,v 1.19 2008/10/03 04:22:37 guenther Exp $ */ +/* $OpenBSD: rthread.h,v 1.20 2009/02/20 02:38:57 guenther Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -166,4 +166,4 @@ void threxit(int); int thrsleep(void *, int, void *); int thrwakeup(void *, int n); int sched_yield(void); -int thrsigdivert(const sigset_t *); +int thrsigdivert(sigset_t); 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; |