]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: use const for input argument in 2 functions' prototype
authorAvner BenHanoch <avnerb@mellanox.com>
Sun, 3 Apr 2016 13:09:18 +0000 (16:09 +0300)
committerAvner BenHanoch <avnerb@mellanox.com>
Tue, 12 Apr 2016 12:21:28 +0000 (15:21 +0300)
Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
src/msg/xio/XioMessenger.cc

index 9b04551de8c1b02f99bd47e29dea43b453228304..963340a1f355964b6eae6f88e45bc125259e0496 100644 (file)
@@ -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<buffer::ptr>& 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)
 {