]> 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>
Tue, 2 Apr 2013 12:24:28 +0000 (14:24 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 12:24:28 +0000 (14:24 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rbd.cc

index df6f97da9f5cb65d621c307f6cff0f0d61eca2fb..6449ef1f4cd1cb326ee739f94431fb7aae7474e7 100644 (file)
@@ -1150,7 +1150,7 @@ struct output_method {
 
 static int diff_cb(uint64_t ofs, size_t len, int exists, void *arg)
 {
-  output_method *om = (output_method *) arg;
+  output_method *om = static_cast<output_method *>(arg);
   om->empty = false;
   if (om->f) {
     om->f->open_object_section("extent");