diff options
Diffstat (limited to 'sysdeps/ia64/nptl')
-rw-r--r-- | sysdeps/ia64/nptl/pthread_spin_lock.c | 3 | ||||
-rw-r--r-- | sysdeps/ia64/nptl/pthread_spin_trylock.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/ia64/nptl/pthread_spin_lock.c b/sysdeps/ia64/nptl/pthread_spin_lock.c index 00d00a1505..32816b5256 100644 --- a/sysdeps/ia64/nptl/pthread_spin_lock.c +++ b/sysdeps/ia64/nptl/pthread_spin_lock.c @@ -19,8 +19,7 @@ #include "pthreadP.h" int -pthread_spin_lock (lock) - pthread_spinlock_t *lock; +pthread_spin_lock (pthread_spinlock_t *lock) { int *p = (int *) lock; 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; } |