From: Avner BenHanoch Date: Sun, 3 Apr 2016 13:09:18 +0000 (+0300) Subject: xio: use const for input argument in 2 functions' prototype X-Git-Tag: v10.2.0~22^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a746e6990173488d9db72d68fbce3a0a9011b82;p=ceph.git xio: use const for input argument in 2 functions' prototype Signed-off-by: Avner BenHanoch --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 9b04551de8c1..963340a1f355 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -575,7 +575,7 @@ enum bl_type #define MAX_XIO_BUF_SIZE 1044480 static inline int -xio_count_buffers(buffer::list& bl, int& req_size, int& msg_off, int& req_off) +xio_count_buffers(const buffer::list& bl, int& req_size, int& msg_off, int& req_off) { const std::list& buffers = bl.buffers(); @@ -620,7 +620,7 @@ xio_count_buffers(buffer::list& bl, int& req_size, int& msg_off, int& req_off) } static inline void -xio_place_buffers(buffer::list& bl, XioMsg *xmsg, struct xio_msg*& req, +xio_place_buffers(const buffer::list& bl, XioMsg *xmsg, struct xio_msg*& req, struct xio_iovec_ex*& msg_iov, int& req_size, int ex_cnt, int& msg_off, int& req_off, bl_type type) {