From 511159a1be1866d91ae36d3e569619f50c364618 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 16:24:43 +0100 Subject: [PATCH] test_librbd.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- src/test/librbd/test_librbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {} -- 2.39.5