summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2015-05-21 09:50:10 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-06-23 16:05:34 +0100
commit6b64640dd25846c4de42aa433db56e0ff975993a (patch)
tree1a02774f495f4fa5bdac5957f4fc415b5233cf93 /include
parent3307ed7b3fac5ba99eb3b84904b0b7cdc3592a61 (diff)
downloadqemu-6b64640dd25846c4de42aa433db56e0ff975993a.zip
iov: don't touch iov in iov_send_recv()
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Message-id: 555D39D2.4000705@cn.fujitsu.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/iov.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/iov.h b/include/qemu/iov.h
index 68d25f29b7..569b2c2a23 100644
--- a/include/qemu/iov.h
+++ b/include/qemu/iov.h
@@ -75,7 +75,7 @@ size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt,
* For iov_send_recv() _whole_ area being sent or received
* should be within the iovec, not only beginning of it.
*/
-ssize_t iov_send_recv(int sockfd, struct iovec *iov, unsigned iov_cnt,
+ssize_t iov_send_recv(int sockfd, const struct iovec *iov, unsigned iov_cnt,
size_t offset, size_t bytes, bool do_send);
#define iov_recv(sockfd, iov, iov_cnt, offset, bytes) \
iov_send_recv(sockfd, iov, iov_cnt, offset, bytes, false)