diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 13:51:57 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 13:51:57 +0100 |
commit | b232621bc19471e0ae4a7fd9bf688a17a9dd5ee5 (patch) | |
tree | cb20e59f2d42133ff45a5b0d1fec2ef29b919e4e | |
parent | 17bd157632c01dc9418503960fc207f298ccb2b8 (diff) | |
download | ceph-b232621bc19471e0ae4a7fd9bf688a17a9dd5ee5.tar.gz |
mon/LogMonitor.cc: use static_cast instead of C-Style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/mon/LogMonitor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc index ed933285ac0..5cc956a79a9 100644 --- a/src/mon/LogMonitor.cc +++ b/src/mon/LogMonitor.cc @@ -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: |