diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 2011-07-05 03:58:23 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 2011-07-05 03:58:23 +0000 |
commit | 29978210e6a94f6b696fce5f1a7003eff3793a7b (patch) | |
tree | b6ddfc4df7fb0a13adfa398b9d7cb39afb6db7c9 /sys/kern | |
parent | b7a614353534d29eb810a29fcebd617fb281550a (diff) |
Replace expanded version of RW_PROC() with the macro.
ok oga@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_rwlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 8d33dc2724c..7efb00e1d2c 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_rwlock.c,v 1.16 2010/09/24 13:21:30 matthew Exp $ */ +/* $OpenBSD: kern_rwlock.c,v 1.17 2011/07/05 03:58:22 weingart Exp $ */ /* * Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org> @@ -265,7 +265,7 @@ rw_assert_wrlock(struct rwlock *rwl) if (!(rwl->rwl_owner & RWLOCK_WRLOCK)) panic("%s: lock not held", rwl->rwl_name); - if (RWLOCK_OWNER(rwl) != (struct proc *)((long)curproc & ~RWLOCK_MASK)) + if (RWLOCK_OWNER(rwl) != (struct proc *)RW_PROC(curproc)) panic("%s: lock not held by this process", rwl->rwl_name); } |