--- a/tests/delay2.c
+++ b/tests/delay2.c
@@ -74,7 +74,7 @@
 
   assert(pthread_mutex_unlock(&mx) == 0);
 
-  assert(pthread_join(t, (void *) &result) == 0);
+  assert(pthread_join(t, &result) == 0);
   assert(result == (void*)PTHREAD_CANCELED);
 
   return 0;