From 146e457502792e108f40b30264d251a4ee67de9f Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 13:27:03 +0100 Subject: [PATCH] mds/Migrator.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/mds/Migrator.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 123986908a1c6..5e53803753140 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -86,46 +86,46 @@ void Migrator::dispatch(Message *m) switch (m->get_type()) { // import case MSG_MDS_EXPORTDIRDISCOVER: - handle_export_discover((MExportDirDiscover*)m); + handle_export_discover(static_cast(m)); break; case MSG_MDS_EXPORTDIRPREP: - handle_export_prep((MExportDirPrep*)m); + handle_export_prep(static_cast(m)); break; case MSG_MDS_EXPORTDIR: - handle_export_dir((MExportDir*)m); + handle_export_dir(static_cast(m)); break; case MSG_MDS_EXPORTDIRFINISH: - handle_export_finish((MExportDirFinish*)m); + handle_export_finish(static_cast(m)); break; case MSG_MDS_EXPORTDIRCANCEL: - handle_export_cancel((MExportDirCancel*)m); + handle_export_cancel(static_cast(m)); break; // export case MSG_MDS_EXPORTDIRDISCOVERACK: - handle_export_discover_ack((MExportDirDiscoverAck*)m); + handle_export_discover_ack(static_cast(m)); break; case MSG_MDS_EXPORTDIRPREPACK: - handle_export_prep_ack((MExportDirPrepAck*)m); + handle_export_prep_ack(static_cast(m)); break; case MSG_MDS_EXPORTDIRACK: - handle_export_ack((MExportDirAck*)m); + handle_export_ack(static_cast(m)); break; case MSG_MDS_EXPORTDIRNOTIFYACK: - handle_export_notify_ack((MExportDirNotifyAck*)m); + handle_export_notify_ack(static_cast(m)); break; // export 3rd party (dir_auth adjustments) case MSG_MDS_EXPORTDIRNOTIFY: - handle_export_notify((MExportDirNotify*)m); + handle_export_notify(static_cast(m)); break; // caps case MSG_MDS_EXPORTCAPS: - handle_export_caps((MExportCaps*)m); + handle_export_caps(static_cast(m)); break; case MSG_MDS_EXPORTCAPSACK: - handle_export_caps_ack((MExportCapsAck*)m); + handle_export_caps_ack(static_cast(m)); break; default: -- 2.39.5