diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 13:27:03 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 13:27:03 +0100 |
commit | 146e457502792e108f40b30264d251a4ee67de9f (patch) | |
tree | 6dbcaada0d514017c7c7777b49c05c025f39962f | |
parent | cb31159de3481fe01ddd71f238c6c43d0c5acc0d (diff) | |
download | ceph-146e457502792e108f40b30264d251a4ee67de9f.tar.gz |
mds/Migrator.cc: use static_cast instead of C-Style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/mds/Migrator.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 123986908a1..5e538037531 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<MExportDirDiscover*>(m)); break; case MSG_MDS_EXPORTDIRPREP: - handle_export_prep((MExportDirPrep*)m); + handle_export_prep(static_cast<MExportDirPrep*>(m)); break; case MSG_MDS_EXPORTDIR: - handle_export_dir((MExportDir*)m); + handle_export_dir(static_cast<MExportDir*>(m)); break; case MSG_MDS_EXPORTDIRFINISH: - handle_export_finish((MExportDirFinish*)m); + handle_export_finish(static_cast<MExportDirFinish*>(m)); break; case MSG_MDS_EXPORTDIRCANCEL: - handle_export_cancel((MExportDirCancel*)m); + handle_export_cancel(static_cast<MExportDirCancel*>(m)); break; // export case MSG_MDS_EXPORTDIRDISCOVERACK: - handle_export_discover_ack((MExportDirDiscoverAck*)m); + handle_export_discover_ack(static_cast<MExportDirDiscoverAck*>(m)); break; case MSG_MDS_EXPORTDIRPREPACK: - handle_export_prep_ack((MExportDirPrepAck*)m); + handle_export_prep_ack(static_cast<MExportDirPrepAck*>(m)); break; case MSG_MDS_EXPORTDIRACK: - handle_export_ack((MExportDirAck*)m); + handle_export_ack(static_cast<MExportDirAck*>(m)); break; case MSG_MDS_EXPORTDIRNOTIFYACK: - handle_export_notify_ack((MExportDirNotifyAck*)m); + handle_export_notify_ack(static_cast<MExportDirNotifyAck*>(m)); break; // export 3rd party (dir_auth adjustments) case MSG_MDS_EXPORTDIRNOTIFY: - handle_export_notify((MExportDirNotify*)m); + handle_export_notify(static_cast<MExportDirNotify*>(m)); break; // caps case MSG_MDS_EXPORTCAPS: - handle_export_caps((MExportCaps*)m); + handle_export_caps(static_cast<MExportCaps*>(m)); break; case MSG_MDS_EXPORTCAPSACK: - handle_export_caps_ack((MExportCapsAck*)m); + handle_export_caps_ack(static_cast<MExportCapsAck*>(m)); break; default: |