summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-15 07:48:56 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-15 07:48:56 +0000
commitd5bd7473c7677138544e5b508444d093c225d8e8 (patch)
tree3b7b33f69e37761022da7cade8b623af5089665c /sys/kern/kern_lock.c
parent315a82270c387767088c4a7fbdbcc722b1ad74b6 (diff)
Surround WEHOLDIT() macro with braces to make it more safe.
No binary change. ok otto@
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 5267753c9a7..99bcd6aaeeb 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.31 2007/11/26 15:23:26 art Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.32 2009/01/15 07:48:55 grange Exp $ */
/*
* Copyright (c) 1995
@@ -105,7 +105,7 @@ do { \
(lkp)->lk_lockholder = (pid)
#define WEHOLDIT(lkp, pid, cpu_id) \
- (lkp)->lk_lockholder == (pid)
+ ((lkp)->lk_lockholder == (pid))
#define WAKEUP_WAITER(lkp) \
do { \