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

index ed933285ac0924852fcb5c6bf6842ba7cbb7a6dc..5cc956a79a94b6fb487ee4f0c1dd7e7396c92d85 100644 (file)
@@ -226,7 +226,7 @@ bool LogMonitor::preprocess_query(PaxosServiceMessage *m)
   dout(10) << "preprocess_query " << *m << " from " << m->get_orig_source_inst() << dendl;
   switch (m->get_type()) {
   case MSG_MON_COMMAND:
-    return preprocess_command((MMonCommand*)m);
+    return preprocess_command(static_cast<MMonCommand*>(m));
 
   case MSG_LOG:
     return preprocess_log((MLog*)m);
@@ -243,7 +243,7 @@ bool LogMonitor::prepare_update(PaxosServiceMessage *m)
   dout(10) << "prepare_update " << *m << " from " << m->get_orig_source_inst() << dendl;
   switch (m->get_type()) {
   case MSG_MON_COMMAND:
-    return prepare_command((MMonCommand*)m);
+    return prepare_command(static_cast<MMonCommand*>(m));
   case MSG_LOG:
     return prepare_log((MLog*)m);
   default: