mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 22:11:53 -06:00
savevm: add comments for qemu_file_get_error()
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>
This commit is contained in:
parent
f828a4c8fa
commit
675fd0a7da
1 changed files with 7 additions and 0 deletions
7
savevm.c
7
savevm.c
|
@ -566,6 +566,13 @@ QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
|
||||||
return f;
|
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)
|
int qemu_file_get_error(QEMUFile *f)
|
||||||
{
|
{
|
||||||
return f->last_error;
|
return f->last_error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue