]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
XioMessenger.cc: use reinterpret_cast instead of c-style
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 20:05:33 +0000 (21:05 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 21:51:08 +0000 (22:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/xio/XioMessenger.cc

index 2fc3359ccf2c74b208e31758eea7ff95990402b3..1b9ea7c312276b12699a24c7c52d45243ecc587d 100644 (file)
@@ -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<XioMsg*>(mp_mem.addr);
   assert(!!xmsg);
   new (xmsg) XioMsg(m, xcon, mp_mem, ex_cnt);
   return xmsg;