From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 22:20:39 +0000 (+0100) Subject: xio/XioMsg.h: use static_cast instead of c-style cast X-Git-Tag: suse_latest~36^2~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2d1803b3852aa3394cc2d9ecf19612dcdc1e347c;p=ceph.git xio/XioMsg.h: use static_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/xio/XioMsg.h b/src/msg/xio/XioMsg.h index 96bd47e46b554..21bb62cc2a2ea 100644 --- a/src/msg/xio/XioMsg.h +++ b/src/msg/xio/XioMsg.h @@ -230,7 +230,7 @@ public: } void alloc_trailers(int cnt) { - req_arr = (xio_msg_ex*) malloc(cnt * sizeof(xio_msg_ex)); + req_arr = static_cast(malloc(cnt * sizeof(xio_msg_ex))); for (int ix = 0; ix < cnt; ++ix) { xio_msg_ex* xreq = &(req_arr[ix]); new (xreq) xio_msg_ex(this);