[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qemu-file: use fwrite() correctly (take II)
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH] qemu-file: use fwrite() correctly (take II) |
Date: |
Wed, 5 Mar 2014 20:08:43 +0100 |
Simple minds like mine can't understand neither fwrite, or comments
when there are 3 versions of a patch. The integrated patch is missing
this bit.
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
---
I added Reviewed-by: by Eric & Markus because they acked the version
with this change in.
qemu-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-file.c b/qemu-file.c
index f074af1..e5ec798 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;
}
--
1.8.5.3
- [Qemu-devel] [PATCH] qemu-file: use fwrite() correctly (take II),
Juan Quintela <=