summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/pt-mutex-timedlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/pt-mutex-timedlock.c')
-rw-r--r--sysdeps/mach/hurd/pt-mutex-timedlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/pt-mutex-timedlock.c b/sysdeps/mach/hurd/pt-mutex-timedlock.c
index b6308f8..4119291 100644
--- a/sysdeps/mach/hurd/pt-mutex-timedlock.c
+++ b/sysdeps/mach/hurd/pt-mutex-timedlock.c
@@ -40,7 +40,7 @@ pthread_mutex_timedlock (pthread_mutex_t *mtxp, const struct timespec *tsp)
if (mtx_owned_p (mtxp, self, flags))
{
if (__glibc_unlikely (mtxp->__cnt + 1 == 0))
- return (EAGAIN);
+ return EAGAIN;
++mtxp->__cnt;
ret = 0;
@@ -74,5 +74,5 @@ pthread_mutex_timedlock (pthread_mutex_t *mtxp, const struct timespec *tsp)
break;
}
- return (ret);
+ return ret;
}