From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 12:27:03 +0000 (+0100) Subject: mds/Migrator.cc: use static_cast instead of C-Style cast X-Git-Tag: v0.59~54^2~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=146e457502792e108f40b30264d251a4ee67de9f;p=ceph.git mds/Migrator.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 123986908a1c..5e5380375314 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: