diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-03 16:55:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-03 16:55:13 +0000 |
commit | 5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e (patch) | |
tree | 7ac38dd8700ac020b79f87256af5ceb32d32ffda | |
parent | 8658ceda2f4e0f56b28b21aa5fb353cdd06eba19 (diff) | |
download | glibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.zip glibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.tar.gz glibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.tar.bz2 |
Update.
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>.
-rw-r--r-- | Rules | 2 | ||||
-rw-r--r-- | linuxthreads/ChangeLog | 5 | ||||
-rw-r--r-- | linuxthreads/spinlock.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -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 = diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index aac2e47..54ee1cf 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -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 diff --git a/linuxthreads/spinlock.h b/linuxthreads/spinlock.h index f88e8f3..b3d0231 100644 --- a/linuxthreads/spinlock.h +++ b/linuxthreads/spinlock.h @@ -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 |