]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd.cc: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:30:55 +0000 (15:30 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 14:30:55 +0000 (15:30 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rbd.cc

index 02a793bf64ba03e680e22f84d82f92bf25b63ee7..21186dd03e2b4cdc5b9323aeb9fc8104f1157203 100644 (file)
@@ -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<rbd_bencher *>(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<ExportContext *>(arg);
   int fd = ec->fd;
   static char *localbuf = NULL;
   static size_t maplen = 0;