From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 14:30:55 +0000 (+0100) Subject: rbd.cc: use static_cast instead of C-Style cast X-Git-Tag: v0.60~106^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fab9ee5076758221689c536eda81d7d96587fa8d;p=ceph.git rbd.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- 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;