From: Danny Al-Gaaf Date: Tue, 21 Oct 2014 12:39:21 +0000 (+0200) Subject: Paxos.cc: use reinterpret_cast instead of c-style cast X-Git-Tag: v0.88~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ecbbf87d3bd5ac0901be40546f96951f9ecafbc3;p=ceph.git Paxos.cc: use reinterpret_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 85cfb4f2f5d3..231b1e5b7399 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -1379,7 +1379,7 @@ void Paxos::dispatch(PaxosServiceMessage *m) case MSG_MON_PAXOS: { - MMonPaxos *pm = (MMonPaxos*)m; + MMonPaxos *pm = reinterpret_cast(m); // NOTE: these ops are defined in messages/MMonPaxos.h switch (pm->op) {