From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 15:24:43 +0000 (+0100) Subject: test_librbd.cc: use static_cast instead of c-style X-Git-Tag: v12.0.2~116^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=511159a1be1866d91ae36d3e569619f50c364618;p=ceph-ci.git test_librbd.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index a467e928126..983ee504578 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -657,7 +657,7 @@ TEST_F(TestLibRBD, UpdateWatchAndResize) uint64_t size = 2 << 20; struct Watcher { static void cb(void *arg) { - Watcher *watcher = (Watcher *)arg; + Watcher *watcher = static_cast(arg); watcher->handle_notify(); } Watcher(rbd_image_t &image) : m_image(image), m_lock("lock") {}