From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 20:07:03 +0000 (+0100) Subject: xio: use static_cast instead of c-style casts X-Git-Tag: suse_latest~36^2~9^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb09695a05e621170a9bed50467044eb0c635ea7;p=ceph.git xio: use static_cast instead of c-style casts Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/xio/XioConnection.cc b/src/msg/xio/XioConnection.cc index 8e33dd998d9b..a4d44d8c4145 100644 --- a/src/msg/xio/XioConnection.cc +++ b/src/msg/xio/XioConnection.cc @@ -194,7 +194,7 @@ static inline XioDispatchHook* pool_alloc_xio_dispatch_hook( sizeof(XioDispatchHook), &mp_mem); if (!!e) return NULL; - XioDispatchHook *xhook = (XioDispatchHook*) mp_mem.addr; + XioDispatchHook *xhook = static_cast(mp_mem.addr); new (xhook) XioDispatchHook(xcon, m, msg_seq, mp_mem); return xhook; } diff --git a/src/msg/xio/XioMsg.cc b/src/msg/xio/XioMsg.cc index 362d8bebc35a..ac32840ee577 100644 --- a/src/msg/xio/XioMsg.cc +++ b/src/msg/xio/XioMsg.cc @@ -25,7 +25,7 @@ int XioDispatchHook::release_msgs() cl_flag = true; /* queue for release */ - xrsp = (XioRsp *) rsp_pool.alloc(sizeof(XioRsp)); + xrsp = static_cast(rsp_pool.alloc(sizeof(XioRsp))); new (xrsp) XioRsp(xcon, this); /* merge with portal traffic */