qemu-file: pass errno from qemu_fflush via f->last_error
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:12 +0000 (17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:01 +0000 (13:32 +0100)
commit93bf21044c38134bc7d35577b675d9f2bdcb8419
treec61d373b9c89be5d3c37e59e2a9c28edc580ba6c
parentd418cf57a3e699746ef0bfa772bbe8c7e17cebb5
qemu-file: pass errno from qemu_fflush via f->last_error

This is done by almost all callers of qemu_fflush, move the code
directly to qemu_fflush.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
savevm.c