aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-26 20:13:27 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-26 20:13:27 +0000
commit6df7ffad195864a5c28d9d24093866e919ef0494 (patch)
tree02d6096090d896d537fc60d5047af0da0bc0772b /nptl/sysdeps/unix
parentd8ff3792a8020ff25b703109a763161236cfa8dd (diff)
downloadglibc-6df7ffad195864a5c28d9d24093866e919ef0494.zip
glibc-6df7ffad195864a5c28d9d24093866e919ef0494.tar.gz
glibc-6df7ffad195864a5c28d9d24093866e919ef0494.tar.bz2
* sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
Diffstat (limited to 'nptl/sysdeps/unix')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sem_timedwait.c10
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sem_wait.c1
2 files changed, 1 insertions, 10 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
index 30f6a87..4c8acd0 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c
@@ -31,16 +31,6 @@
extern void __sem_wait_cleanup (void *arg) attribute_hidden;
-void
-attribute_hidden
-__sem_wait_cleanup (void *arg)
-{
- struct new_sem *isem = (struct new_sem *) arg;
-
- atomic_decrement (&isem->nwaiters);
-}
-
-
int
sem_timedwait (sem_t *sem, const struct timespec *abstime)
{
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_wait.c b/nptl/sysdeps/unix/sysv/linux/sem_wait.c
index e35b648..05114c9 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_wait.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_wait.c
@@ -65,6 +65,7 @@ __new_sem_wait (sem_t *sem)
{
__set_errno (-err);
err = -1;
+ break;
}
if (atomic_decrement_if_positive (&isem->value) > 0)