summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2001-10-06 10:36:15 +0000
committerAnton Blanchard <anton@samba.org>2001-10-06 10:36:15 +0000
commit032f65d5ff7de0a895e8915ea669bdbe07b9ae52 (patch)
tree79871877ec8ba5c67ac53b485c5a8cedaa8a75bd /source3
parent36c7d52ed8997739008156239af570c46feb3aed (diff)
downloadsamba-032f65d5ff7de0a895e8915ea669bdbe07b9ae52.tar.gz
samba-032f65d5ff7de0a895e8915ea669bdbe07b9ae52.tar.bz2
samba-032f65d5ff7de0a895e8915ea669bdbe07b9ae52.zip
PPC spinlocks work again. Sorry, my bad.
(This used to be commit 6612abf8270c9c697fdb528aba3af07ea5be7f33)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/spinlock.c b/source3/tdb/spinlock.c
index d2ed381a17..0a68981ca2 100644
--- a/source3/tdb/spinlock.c
+++ b/source3/tdb/spinlock.c
@@ -94,7 +94,7 @@ static inline int __spin_trylock(spinlock_t *lock)
: "r"(lock)
: "cr0", "memory");
- return (result == 0) ? 0 : EBUSY;
+ return (result == 1) ? 0 : EBUSY;
}
static inline void __spin_unlock(spinlock_t *lock)