They currently return the value of their 'bytes' parameter on success.
Make them return 0 instead, for consistency with other I/O functions and
in preparation to implement them using generated_co_wrapper. This also
makes it clear that short reads/writes are not possible.
Signed-off-by: Alberto Faria <afaria@redhat.com>
---
block.c | 8 +++++---
block/block-backend.c | 7 ++-----
block/qcow.c | 6 +++---
hw/block/m25p80.c | 2 +-
hw/misc/mac_via.c | 4 ++--
hw/misc/sifive_u_otp.c | 2 +-
hw/nvram/eeprom_at24c.c | 8 ++++----
hw/nvram/spapr_nvram.c | 14 +++++++-------
hw/ppc/pnv_pnor.c | 2 +-
qemu-img.c | 25 +++++++++----------------
qemu-io-cmds.c | 18 ++++++++++++------
tests/unit/test-block-iothread.c | 4 ++--
12 files changed, 49 insertions(+), 51 deletions(-)