diff options
author | Hannes Reinecke <hare@suse.de> | 2011-07-11 15:02:23 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-07-18 16:06:27 +0200 |
commit | 348e7b8dcd1460df4d681105f63dd90bba70496d (patch) | |
tree | 5df2392581adad67c863127448a0e73e8c2ed0b3 /iov.h | |
parent | 5afc8b3de9a8a472a45d2b980632a15cb7f1e1c3 (diff) |
iov: Update parameter usage in iov_(to|from)_buf()
iov_to_buf() has an 'offset' parameter, iov_from_buf() hasn't.
This patch adds the missing parameter to iov_from_buf().
It also renames the 'offset' parameter to 'iov_off' to
emphasize it's the offset into the iovec and not the buffer.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'iov.h')
-rw-r--r-- | iov.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,8 +12,8 @@ #include "qemu-common.h" -size_t iov_from_buf(struct iovec *iov, unsigned int iovcnt, - const void *buf, size_t size); -size_t iov_to_buf(const struct iovec *iov, const unsigned int iovcnt, - void *buf, size_t offset, size_t size); -size_t iov_size(const struct iovec *iov, const unsigned int iovcnt); +size_t iov_from_buf(struct iovec *iov, unsigned int iov_cnt, + const void *buf, size_t iov_off, size_t size); +size_t iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, + void *buf, size_t iov_off, size_t size); +size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt); |