summaryrefslogtreecommitdiff
path: root/sysdeps/ia64/nptl/pthread_spin_trylock.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 20:01:19 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 20:01:19 +0200
commit3896c5809b49e72fbadc57da2189ff42aa2a5d02 (patch)
tree976132226affe5ff11686d86d01d059aa5eabc6c /sysdeps/ia64/nptl/pthread_spin_trylock.c
parent52c6cb0bba348bf5f25ff2a213e04c0f3fc378aa (diff)
parent4dc1e6e42f1f602e1d2227e112f2db8dce9da763 (diff)
Merge commit 'refs/top-bases/t/hurdsig-boot-fix' into t/hurdsig-boot-fix
Diffstat (limited to 'sysdeps/ia64/nptl/pthread_spin_trylock.c')
-rw-r--r--sysdeps/ia64/nptl/pthread_spin_trylock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/ia64/nptl/pthread_spin_trylock.c b/sysdeps/ia64/nptl/pthread_spin_trylock.c
index 59370f38ce..304ac0706a 100644
--- a/sysdeps/ia64/nptl/pthread_spin_trylock.c
+++ b/sysdeps/ia64/nptl/pthread_spin_trylock.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -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;
}