From: Markus Armbruster Date: Thu, 6 Mar 2014 20:03:35 +0000 (+0530) Subject: qemu_file: Fix mismerge of "use fwrite() correctly" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ac4df4e608e84da135eacecd7bba7c6e9e9a63b7;p=qemu.git qemu_file: Fix mismerge of "use fwrite() correctly" Reviewers accepted v2 of the patch, but what got committed was v1, with the R-bys for v2. This is the v1->v2 followup fix. [Amit: This fixes commit aded6539d983280212e08d09f14157b1cb4d58cc ] Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Amit Shah Signed-off-by: Amit Shah Signed-off-by: Juan Quintela --- diff --git a/qemu-file.c b/qemu-file.c index f074af15c3..e5ec798e0b 100644 --- a/qemu-file.c +++ b/qemu-file.c @@ -105,7 +105,7 @@ static int stdio_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, res = fwrite(buf, 1, size, s->stdio_file); if (res != size) { - return -EIO; /* fake errno value */ + return -errno; } return res; }