aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ia64/nptl/pthread_spin_trylock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/nptl/pthread_spin_trylock.c')
-rw-r--r--sysdeps/ia64/nptl/pthread_spin_trylock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/ia64/nptl/pthread_spin_trylock.c b/sysdeps/ia64/nptl/pthread_spin_trylock.c
index 59370f38ce..8b76739059 100644
--- a/sysdeps/ia64/nptl/pthread_spin_trylock.c
+++ b/sysdeps/ia64/nptl/pthread_spin_trylock.c
@@ -20,8 +20,7 @@
#include "pthreadP.h"
int
-pthread_spin_trylock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_trylock (pthread_spinlock_t *lock)
{
return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY;
}