migration: rename qemu_file_has_error to qemu_file_get_error

Now the function returned errno, so it is better the new name.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2011-10-05 01:02:52 +02:00
parent 3934638539
commit 624b9cc209
6 changed files with 21 additions and 20 deletions

View file

@ -313,7 +313,7 @@ void migrate_fd_put_notify(void *opaque)
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
qemu_file_put_notify(s->file);
if (qemu_file_has_error(s->file)) {
if (qemu_file_get_error(s->file)) {
migrate_fd_error(s);
}
}