From 2a8a66d58ad7ad28d32de42bd3423d7aa3917e3b Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Sun, 13 Jan 2019 17:30:11 +0800 Subject: common-utils: make vector a const parameter To avoid the warning and preparing for adding writesame support. Updates: #617 Change-Id: I0710b1e4c240368a9bf52968bddc6e250ae2028d Signed-off-by: Xiubo Li --- libglusterfs/src/glusterfs/common-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/glusterfs/common-utils.h') diff --git a/libglusterfs/src/glusterfs/common-utils.h b/libglusterfs/src/glusterfs/common-utils.h index b688981617d..e7101be4aab 100644 --- a/libglusterfs/src/glusterfs/common-utils.h +++ b/libglusterfs/src/glusterfs/common-utils.h @@ -669,7 +669,7 @@ mem_0filled(const char *buf, size_t size) } static inline int -iov_0filled(struct iovec *vector, int count) +iov_0filled(const struct iovec *vector, int count) { int i = 0; int ret = 0; -- cgit