diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 4bd34b5ef32..67df150c265 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -405,23 +405,23 @@ void Objecter::dispatch(Message *m) { switch (m->get_type()) { case CEPH_MSG_OSD_OPREPLY: - handle_osd_op_reply((MOSDOpReply*)m); + handle_osd_op_reply(static_cast(m)); break; case CEPH_MSG_OSD_MAP: - handle_osd_map((MOSDMap*)m); + handle_osd_map(static_cast(m)); break; case MSG_GETPOOLSTATSREPLY: - handle_get_pool_stats_reply((MGetPoolStatsReply*)m); + handle_get_pool_stats_reply(static_cast(m)); break; case CEPH_MSG_STATFS_REPLY: - handle_fs_stats_reply((MStatfsReply*)m); + handle_fs_stats_reply(static_cast(m)); break; case CEPH_MSG_POOLOP_REPLY: - handle_pool_op_reply((MPoolOpReply*)m); + handle_pool_op_reply(static_cast(m)); break; default: