summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 14:02:15 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 14:02:15 +0100
commit0213806233a5d4231c6bf1607135178823023ff3 (patch)
tree1aeb1d5fbee3c5c6feae1375b5cf1420ed7919ec
parentf26fad2ab852ea828761ffbaa9ccbeeea89eed3a (diff)
downloadceph-0213806233a5d4231c6bf1607135178823023ff3.tar.gz
mon/MonClient.cc: use static_cast instead of C-Style cast
Use static_cast<T*>(m) instead of C-Style cast, add missing include needed for static_cast. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/mon/MonClient.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc
index 8f038ae7476..c655515ea53 100644
--- a/src/mon/MonClient.cc
+++ b/src/mon/MonClient.cc
@@ -18,6 +18,7 @@
#include "messages/MMonGetVersionReply.h"
#include "messages/MMonMap.h"
#include "messages/MAuth.h"
+#include "messages/MLogAck.h"
#include "messages/MAuthReply.h"
#include "messages/MMonSubscribe.h"
@@ -191,20 +192,20 @@ bool MonClient::ms_dispatch(Message *m)
switch (m->get_type()) {
case CEPH_MSG_MON_MAP:
- handle_monmap((MMonMap*)m);
+ handle_monmap(static_cast<MMonMap*>(m));
break;
case CEPH_MSG_AUTH_REPLY:
- handle_auth((MAuthReply*)m);
+ handle_auth(static_cast<MAuthReply*>(m));
break;
case CEPH_MSG_MON_SUBSCRIBE_ACK:
- handle_subscribe_ack((MMonSubscribeAck*)m);
+ handle_subscribe_ack(static_cast<MMonSubscribeAck*>(m));
break;
case CEPH_MSG_MON_GET_VERSION_REPLY:
- handle_get_version_reply((MMonGetVersionReply*)m);
+ handle_get_version_reply(static_cast<MMonGetVersionReply*>(m));
break;
case MSG_LOGACK:
if (log_client) {
- log_client->handle_log_ack((MLogAck*)m);
+ log_client->handle_log_ack(static_cast<MLogAck*>(m));
if (more_log_pending) {
send_log();
}