From d5bd7473c7677138544e5b508444d093c225d8e8 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Thu, 15 Jan 2009 07:48:56 +0000 Subject: Surround WEHOLDIT() macro with braces to make it more safe. No binary change. ok otto@ --- sys/kern/kern_lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_lock.c') 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 { \ -- cgit v1.2.3