From 9dc6dd9858a49aab5207cdc46b6820a18ef54bf4 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 2 Feb 2013 07:17:53 +0000 Subject: [PATCH] rx: Fix AIX test_and_set_bit The AIX definition of rx_atomic_test_and_set_bit had its test the wrong way round - so an already set bit would return false, and a clear bit would return true. Fix this. Change-Id: I7778c411016bca53b38257fca59ae0f7aaad64ae Reviewed-on: http://gerrit.openafs.org/9021 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rx/rx_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx_atomic.h b/src/rx/rx_atomic.h index 83a52b4647..5d3c7f57af 100644 --- a/src/rx/rx_atomic.h +++ b/src/rx/rx_atomic.h @@ -174,7 +174,7 @@ rx_atomic_clear_bit(rx_atomic_t *atomic, int bit) { static_inline int rx_atomic_test_and_set_bit(rx_atomic_t *atomic, int bit) { - return (fetch_and_or(&atomic->var, (1<var, (1<