Skip to content

Commit

Permalink
savevm: add comments for qemu_file_get_error()
Browse files Browse the repository at this point in the history
Add comments for qemu_file_get_error(), as its return value
is not very clear.

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
leilihh authored and juanquintela committed Sep 24, 2013
1 parent f828a4c commit 675fd0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions savevm.c
Expand Up @@ -566,6 +566,13 @@ QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
return f;
}

/*
* Get last error for stream f
*
* Return negative error value if there has been an error on previous
* operations, return 0 if no error happened.
*
*/
int qemu_file_get_error(QEMUFile *f)
{
return f->last_error;
Expand Down

0 comments on commit 675fd0a

Please sign in to comment.