]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor.cc: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 13:37:29 +0000 (14:37 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 1 Mar 2013 13:37:29 +0000 (14:37 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/PGMonitor.cc

index 8245ed6ae6efdcad4d4f8a78e8530b989740ae9f..c1c6d6fe2d8571b155e6aa675e56720563ed5bf7 100644 (file)
@@ -288,16 +288,16 @@ bool PGMonitor::preprocess_query(PaxosServiceMessage *m)
   dout(10) << "preprocess_query " << *m << " from " << m->get_orig_source_inst() << dendl;
   switch (m->get_type()) {
   case CEPH_MSG_STATFS:
-    handle_statfs((MStatfs*)m);
+    handle_statfs(static_cast<MStatfs*>(m));
     return true;
   case MSG_GETPOOLSTATS:
-    return preprocess_getpoolstats((MGetPoolStats*)m);
+    return preprocess_getpoolstats(static_cast<MGetPoolStats*>(m));
     
   case MSG_PGSTATS:
-    return preprocess_pg_stats((MPGStats*)m);
+    return preprocess_pg_stats(static_cast<MPGStats*>(m));
 
   case MSG_MON_COMMAND:
-    return preprocess_command((MMonCommand*)m);
+    return preprocess_command(static_cast<MMonCommand*>(m));
 
 
   default: