]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test_librbd.cc: use static_cast instead of c-style
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 21 Feb 2017 15:24:43 +0000 (16:24 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Apr 2017 15:34:18 +0000 (23:34 +0800)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/librbd/test_librbd.cc

index a467e928126310e93a323ca2f17f5832daa0efb7..983ee504578147a83689b5448d240378a1b9ea4f 100644 (file)
@@ -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<Watcher *>(arg);
       watcher->handle_notify();
     }
     Watcher(rbd_image_t &image) : m_image(image), m_lock("lock") {}