From ecbbf87d3bd5ac0901be40546f96951f9ecafbc3 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 21 Oct 2014 14:39:21 +0200 Subject: [PATCH] Paxos.cc: use reinterpret_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- src/mon/Paxos.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3