Index: tests/test_syscalls.cc |
=================================================================== |
--- tests/test_syscalls.cc (revision 168) |
+++ tests/test_syscalls.cc (working copy) |
@@ -1259,7 +1259,8 @@ |
int sock_pair[2]; |
CHECK_SUCCEEDS(socketpair(AF_UNIX, SOCK_STREAM, 0, sock_pair) == 0); |
pthread_t tid; |
- int err = pthread_create(&tid, NULL, recvmsg_thread, (void *) sock_pair[0]); |
+ int err = pthread_create(&tid, NULL, recvmsg_thread, |
+ reinterpret_cast<void*>(sock_pair[0])); |
CHECK(err == 0); |
// In order to test for the deadlock, we need to wait for the child |