summaryrefslogtreecommitdiff
path: root/tests/cancel9.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cancel9.c')
-rw-r--r--tests/cancel9.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cancel9.c b/tests/cancel9.c
index d4567ef..b009161 100644
--- a/tests/cancel9.c
+++ b/tests/cancel9.c
@@ -172,7 +172,7 @@ main ()
Sleep (100);
assert (pthread_cancel (t) == 0);
assert (pthread_join (t, &result) == 0);
- assert ((int)(size_t)result == (int)PTHREAD_CANCELED && "test_sleep" != NULL);
+ assert (result == PTHREAD_CANCELED && "test_sleep" != NULL);
printf ("Cancel waiting thread.\n");
assert (pthread_create (&t, NULL, test_wait, NULL) == 0);
@@ -180,7 +180,7 @@ main ()
Sleep (100);
assert (pthread_cancel (t) == 0);
assert (pthread_join (t, &result) == 0);
- assert ((int)(size_t)result == (int)PTHREAD_CANCELED && "test_wait");
+ assert (result == PTHREAD_CANCELED && "test_wait");
printf ("Cancel blocked thread (blocked on network I/O).\n");
assert (pthread_create (&t, NULL, test_udp, NULL) == 0);
@@ -188,7 +188,7 @@ main ()
Sleep (100);
assert (pthread_cancel (t) == 0);
assert (pthread_join (t, &result) == 0);
- assert ((int)(size_t)result == (int)PTHREAD_CANCELED && "test_udp" != NULL);
+ assert (result == PTHREAD_CANCELED && "test_udp" != NULL);
}
else
{