tests: Use real size for iov tests
commite3ff9f0e57472e6411dc446b41789cbd9e2cf887
authorJuan Quintela <quintela@redhat.com>
Wed, 23 Aug 2017 08:25:26 +0000 (23 10:25 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 5 Sep 2017 20:34:40 +0000 (5 22:34 +0200)
tree726a1a18d7bd62c7b627d090a97fd97ccbf7e2dc
parentb07d1c2f5607489d4d4a6a65ce36a3e896ac065e
tests: Use real size for iov tests

We were using -1 instead of the real size because the functions check
what is bigger, size in bytes or the size of the iov.  Recent gcc's
barf at this.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
--

Remove comments about this feature.
Fix missing -1.
include/qemu/iov.h
tests/test-iov.c