From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 20:05:33 +0000 (+0100) Subject: XioMessenger.cc: use reinterpret_cast instead of c-style X-Git-Tag: suse_latest~36^2~9^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ec3f768d377779dc09afa0771e995f12a63b5e4;p=ceph.git XioMessenger.cc: use reinterpret_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 2fc3359ccf2c7..1b9ea7c312276 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -717,7 +717,7 @@ static inline XioMsg* pool_alloc_xio_msg(Message *m, XioConnection *xcon, int e = xpool_alloc(xio_msgr_noreg_mpool, sizeof(XioMsg), &mp_mem); if (!!e) return NULL; - XioMsg *xmsg = (XioMsg*) mp_mem.addr; + XioMsg *xmsg = reinterpret_cast(mp_mem.addr); assert(!!xmsg); new (xmsg) XioMsg(m, xcon, mp_mem, ex_cnt); return xmsg;