summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2002-11-02 10:31:22 +0000
committerdavidxu <davidxu@FreeBSD.org>2002-11-02 10:31:22 +0000
commit45330340f4f367bf4039232107f23460fd827b6d (patch)
treeab891c1b6d9a4973d1e4fdd0b100ab006b6d5a8d /tools
parent53bdb71e06793f80b6560b77f12f6d4696f9246f (diff)
downloadFreeBSD-src-45330340f4f367bf4039232107f23460fd827b6d.zip
FreeBSD-src-45330340f4f367bf4039232107f23460fd827b6d.tar.gz
add missing '!', don't why it was lost when checked in.
Diffstat (limited to 'tools')
-rw-r--r--tools/KSE/ksetest/simplelock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/KSE/ksetest/simplelock.h b/tools/KSE/ksetest/simplelock.h
index 591f4a5..8582aa8 100644
--- a/tools/KSE/ksetest/simplelock.h
+++ b/tools/KSE/ksetest/simplelock.h
@@ -45,7 +45,7 @@ simplelock_init(struct simplelock *lock)
static inline void
simplelock_lock(struct simplelock *lock)
{
- while (atomic_cmpset_int(&lock->s_lock, 0, 1))
+ while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
;
}
OpenPOWER on IntegriCloud