about summary refs log tree commit diff
path: root/linuxthreads/spinlock.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-03 16:55:13 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-03 16:55:13 +0000
commit5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e (patch)
tree7ac38dd8700ac020b79f87256af5ceb32d32ffda /linuxthreads/spinlock.h
parent8658ceda2f4e0f56b28b21aa5fb353cdd06eba19 (diff)
downloadglibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.tar.gz
glibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.tar.xz
glibc-5afe6c0236d8be57bc9bf1cba7fb5ab5e832a75e.zip
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>.
Diffstat (limited to 'linuxthreads/spinlock.h')
-rw-r--r--linuxthreads/spinlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/spinlock.h b/linuxthreads/spinlock.h
index f88e8f3b0e..b3d02314bf 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