tests: fix cast compilation warning

Signed-off-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
Loic Dachary 2014-11-14 15:01:34 +01:00
parent 2ad6ff1565
commit 3b28fd0a8d

View File

@ -197,7 +197,7 @@ TEST_P(EventDriverTest, NetworkSocketTest) {
fired_events.clear();
pthread_t thread1;
r = pthread_create(&thread1, NULL, echoclient, (void*)port);
r = pthread_create(&thread1, NULL, echoclient, (void*)(intptr_t)port);
ASSERT_EQ(r, 0);
tv.tv_sec = 5;
tv.tv_usec = 0;