summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-07-17 08:25:24 +0000
committerphk <phk@FreeBSD.org>2001-07-17 08:25:24 +0000
commitd6884ba65aab053abcb3de99f8ccd17e5d403113 (patch)
tree2151016a787d412e28aab29f772a1430f55676ce /sys
parent4a3ed741de332180e281da37486193ddd2d2bb1c (diff)
downloadFreeBSD-src-d6884ba65aab053abcb3de99f8ccd17e5d403113.zip
FreeBSD-src-d6884ba65aab053abcb3de99f8ccd17e5d403113.tar.gz
Add missing () around macro argument in cv_waitq_empty()
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/condvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/condvar.h b/sys/sys/condvar.h
index 5460024..5446a5e 100644
--- a/sys/sys/condvar.h
+++ b/sys/sys/condvar.h
@@ -63,7 +63,7 @@ void cv_broadcast(struct cv *cvp);
void cv_waitq_remove(struct proc *p);
-#define cv_waitq_empty(cvp) (TAILQ_EMPTY(&cvp->cv_waitq))
+#define cv_waitq_empty(cvp) (TAILQ_EMPTY(&(cvp)->cv_waitq))
#define cv_wmesg(cvp) ((cvp)->cv_description)
#endif /* _KERNEL */
OpenPOWER on IntegriCloud