Received: from eggs.gnu.org ([2001:4830:134:3::10]:37618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLHBW-0007Og-TB for qemu-devel@nongnu.org; Wed, 05 Mar 2014 14:09:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLHBQ-0002nm-Uq for qemu-devel@nongnu.org; Wed, 05 Mar 2014 14:08:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLHBQ-0002ly-Im for qemu-devel@nongnu.org; Wed, 05 Mar 2014 14:08:48 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s25J8kq7010256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Mar 2014 14:08:46 -0500 From: Juan Quintela Date: Wed, 5 Mar 2014 20:08:43 +0100 Message-Id: <1394046523-16983-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] qemu-file: use fwrite() correctly (take II) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Reviewed-by: Eric Blake Reviewed-by: Markus Armbruster --- 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