iov: Update parameter usage in iov_(to|from)_buf()
authorHannes Reinecke <hare@suse.de>
Mon, 11 Jul 2011 13:02:23 +0000 (15:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Jul 2011 14:06:27 +0000 (16:06 +0200)
commit2aec878b34b278f64a862e871e594150d09f6de2
tree5df2392581adad67c863127448a0e73e8c2ed0b3
parentbf30b6437929ea01f7798cf144b1822baca83b33
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>
hw/virtio-net.c
hw/virtio-serial-bus.c
iov.c
iov.h