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 /hw/virtio-serial-bus.c | |
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 'hw/virtio-serial-bus.c')
-rw-r--r-- | hw/virtio-serial-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 7f6db7bffe..53c58d0f3f 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@ -103,7 +103,7 @@ static size_t write_to_port(VirtIOSerialPort *port, } len = iov_from_buf(elem.in_sg, elem.in_num, - buf + offset, size - offset); + buf + offset, 0, size - offset); offset += len; virtqueue_push(vq, &elem, len); |