Commit ac4df4e6 authored by Markus Armbruster's avatar Markus Armbruster Committed by Juan Quintela
Browse files

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 aded6539
]

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Reviewed-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent fd8cec93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}