]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: fix cast compilation warning 2930/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 14 Nov 2014 14:01:34 +0000 (15:01 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 14 Nov 2014 14:01:34 +0000 (15:01 +0100)
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/msgr/test_async_driver.cc

index d4ba95b53630004cd7d1bfa737c2afa0d907558e..d2b98ff757a9aefe2a637af3f3b435c4eaff8d6b 100644 (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;