summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 07:21:14 +0000
committerd <d@openbsd.org>2000-01-06 07:21:14 +0000
commit968432b63600c63289dd7a07b23c84997166808b (patch)
tree0a52f34a32d58cb1d1f611b9580a46e6ea2630f7 /lib/libpthread
parentfill out cases with new thread states (diff)
downloadwireguard-openbsd-968432b63600c63289dd7a07b23c84997166808b.tar.xz
wireguard-openbsd-968432b63600c63289dd7a07b23c84997166808b.zip
quieten gcc with extra parens
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_sigwait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_sigwait.c b/lib/libpthread/uthread/uthread_sigwait.c
index 84db32d0470..abcc1d6e894 100644
--- a/lib/libpthread/uthread/uthread_sigwait.c
+++ b/lib/libpthread/uthread/uthread_sigwait.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_sigwait.c,v 1.7 1999/11/25 07:01:45 d Exp $ */
+/* $OpenBSD: uthread_sigwait.c,v 1.8 2000/01/06 07:21:14 d Exp $ */
/*
* Copyright (c) 1997 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -72,7 +72,7 @@ sigwait(const sigset_t * set, int *sig)
sigdelset(&waitset, SIGINFO);
/* Check to see if a pending signal is in the wait mask. */
- if (tempset = (_thread_run->sigpend & waitset)) {
+ if ((tempset = (_thread_run->sigpend & waitset)) != 0) {
/* Enter a loop to find a pending signal: */
for (i = 1; i < NSIG; i++) {
if (sigismember (&tempset, i))