diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 14:37:29 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 14:37:29 +0100 |
commit | 8bfe3c6f89d7646fb5ff41bba7c4ba294de570c4 (patch) | |
tree | a488945880c393c3685604588705d98588db53ec | |
parent | 5376a139fe5406aadf9315ed634a88bc2e0f731c (diff) | |
download | ceph-8bfe3c6f89d7646fb5ff41bba7c4ba294de570c4.tar.gz |
mon/PGMonitor.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/PGMonitor.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 8245ed6ae6e..c1c6d6fe2d8 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -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: |