From fab9ee5076758221689c536eda81d7d96587fa8d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 15:30:55 +0100 Subject: [PATCH] rbd.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/rbd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rbd.cc b/src/rbd.cc index 02a793bf64ba..21186dd03e2b 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -839,7 +839,7 @@ struct rbd_bencher { void rbd_bencher_completion(void *vc, void *pc) { librbd::RBD::AioCompletion *c = (librbd::RBD::AioCompletion *)vc; - rbd_bencher *b = (rbd_bencher *)pc; + rbd_bencher *b = static_cast(pc); //cout << "complete " << c << std::endl; b->lock.Lock(); b->in_flight--; @@ -917,7 +917,7 @@ struct ExportContext { static int export_read_cb(uint64_t ofs, size_t len, const char *buf, void *arg) { ssize_t ret; - ExportContext *ec = (ExportContext *)arg; + ExportContext *ec = static_cast(arg); int fd = ec->fd; static char *localbuf = NULL; static size_t maplen = 0; -- 2.47.3