]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio/XioMsg.h: use static_cast instead of c-style cast 3605/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 22:20:39 +0000 (23:20 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 22:20:39 +0000 (23:20 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/xio/XioMsg.h

index 96bd47e46b554a8896f5c66e68fdbd8f9338b96f..21bb62cc2a2eab5f76b30105b8c201fdac9b0de0 100644 (file)
@@ -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<xio_msg_ex*>(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);