summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 13:49:37 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 13:49:37 +0100
commit17bd157632c01dc9418503960fc207f298ccb2b8 (patch)
tree31863c7cac1f102feb71bc022420632eb48a2744
parent00b309cf932585875fb31509a19761dc0aa7f69e (diff)
downloadceph-17bd157632c01dc9418503960fc207f298ccb2b8.tar.gz
mon/Elector.cc: use static_cast instead of C-Style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/mon/Elector.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/Elector.cc b/src/mon/Elector.cc
index 867ed8db02b..2b5bcc2ae88 100644
--- a/src/mon/Elector.cc
+++ b/src/mon/Elector.cc
@@ -314,7 +314,7 @@ void Elector::dispatch(Message *m)
return;
}
- MMonElection *em = (MMonElection*)m;
+ MMonElection *em = static_cast<MMonElection*>(m);
// assume an old message encoding would have matched
if (em->fsid != mon->monmap->fsid) {