aboutsummaryrefslogtreecommitdiff
path: root/iov.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-09-24 12:50:32 +0200
committerMichael S. Tsirkin <mst@redhat.com>2012-09-28 12:16:27 +0200
commit844b5cea8ea6cbe964670a26d1b34037067569df (patch)
tree5a6b49dd6bf1fa0951e28a0fe05893d06f484392 /iov.c
parent40bad8f3deba15e2074ff34cfe923c12916b1cc5 (diff)
iov: add const annotation
iov_from_buf does not change iov, make it const. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'iov.c')
-rw-r--r--iov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iov.c b/iov.c
index 60705c73ab..c6a66f0afe 100644
--- a/iov.c
+++ b/iov.c
@@ -26,7 +26,7 @@
# include <sys/socket.h>
#endif
-size_t iov_from_buf(struct iovec *iov, unsigned int iov_cnt,
+size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
size_t offset, const void *buf, size_t bytes)
{
size_t done;