Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 3 Sep 2000 16:55:13 +0000 (16:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 3 Sep 2000 16:55:13 +0000 (16:55 +0000)
2000-09-03  Ulrich Drepper  <drepper@redhat.com>

* spinlock.h (testandset): Add cast to avoid warning.
Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.

Rules
linuxthreads/ChangeLog
linuxthreads/spinlock.h

diff --git a/Rules b/Rules
index 974421d..4197023 100644 (file)
--- a/Rules
+++ b/Rules
@@ -96,7 +96,7 @@ endif
 
 ifeq ($(build-programs),yes)
 binaries-all = $(others) $(sysdep-others) $(tests) $(test-srcs)
-binaries-static = $(others-static)
+binaries-static = $(others-static) $(tests-static)
 else
 binaries-all = $(tests) $(test-srcs)
 binaries-static =
index aac2e47..54ee1cf 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-03  Ulrich Drepper  <drepper@redhat.com>
+
+       * spinlock.h (testandset): Add cast to avoid warning.
+       Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
+
 2000-09-02  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/pthread/timer_routines.c: Include stdlib.h for abort
index f88e8f3..b3d0231 100644 (file)
@@ -49,7 +49,7 @@ static inline int compare_and_swap(long * ptr, long oldval, long newval,
 #elif defined(HAS_COMPARE_AND_SWAP)
 
 #ifdef IMPLEMENT_TAS_WITH_CAS
-#define testandset(p) !__compare_and_swap(p, 0, 1)
+#define testandset(p) !__compare_and_swap((long int *) p, 0, 1)
 #endif
 
 #ifdef HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS