--- a/tests/join3.c
+++ b/tests/join3.c
@@ -66,7 +66,7 @@
 
 	for (i = 0; i < 4; i++)
 	  {
-	    assert(pthread_join(id[i], (void *) &result) == 0);
+	    assert(pthread_join(id[i], &result) == 0);
 	    assert((int)(size_t)result == i);
 	  }