about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-20 11:40:51 +0000
committerRoland McGrath <roland@gnu.org>2003-03-20 11:40:51 +0000
commit2ff16e041a767bfedec01b6f614ecffb3fb0f653 (patch)
tree31974e18afc84665f33f826ecd15e0fde6629bf3 /include
parent41f3e892d866923e4ad07c4d0e8165ec2237cb22 (diff)
downloadglibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.tar.gz
glibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.tar.xz
glibc-2ff16e041a767bfedec01b6f614ecffb3fb0f653.zip
* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
	variable.  Remove superfluous memory clobber.

	* include/atomic.h: Syntax braino fix.

	* posix/tst-nice.c (do_test): Use %m formats instead of printing errno
	in decimal.  Don't bail if niced at start.  Just check that nice call
	bumps the total at all.
Diffstat (limited to 'include')
-rw-r--r--include/atomic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/atomic.h b/include/atomic.h
index 517776452b..87b2df8d21 100644
--- a/include/atomic.h
+++ b/include/atomic.h
@@ -112,7 +112,8 @@
 
 
 /* Decrement *MEM if it is > 0, and return the old value.  */
-#ifndef atomic_decrement_if_positive(mem) \
+#ifndef atomic_decrement_if_positive
+# define atomic_decrement_if_positive(mem)				      \
   ({ __typeof (*mem) __val;						      \
      __typeof (*mem) __oldval;						      \
      __typeof (mem) __memp;						      \