aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-thrd-sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/tst-thrd-sleep.c')
-rw-r--r--sysdeps/pthread/tst-thrd-sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-thrd-sleep.c b/sysdeps/pthread/tst-thrd-sleep.c
index 39d5fc7079..8cc4bb2690 100644
--- a/sysdeps/pthread/tst-thrd-sleep.c
+++ b/sysdeps/pthread/tst-thrd-sleep.c
@@ -27,7 +27,7 @@ static int
sleep_thrd (void *arg)
{
struct timespec const *tl = (struct timespec const *) arg;
- if (thrd_sleep (tl, NULL) != thrd_success)
+ if (thrd_sleep (tl, NULL) != 0)
FAIL_EXIT1 ("thrd_sleep failed");
thrd_exit (thrd_success);