summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2019-01-13 17:30:11 +0800
committerAmar Tumballi <amarts@redhat.com>2019-01-22 04:59:04 +0000
commit2a8a66d58ad7ad28d32de42bd3423d7aa3917e3b (patch)
tree9f9c551a676427d30a0e831ad43a38392dea6d9a /libglusterfs/src
parent5903111ad21cb937258c0fda24ea7dec466347b4 (diff)
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 <xiubli@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/glusterfs/common-utils.h2
1 files changed, 1 insertions, 1 deletions
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;