buffered_file: Use right "opaque"

buffered_close 's' variable is of type QEMUFileBuffered, and
wait_for_unfreeze() expect to receive a MigrationState, that
'coincidentaly' is s->opaque.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2011-09-21 18:12:58 +02:00
parent 4fc7d8195f
commit db448a088c
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ static int buffered_close(void *opaque)
while (!s->has_error && s->buffer_size) {
buffered_flush(s);
if (s->freeze_output)
s->wait_for_unfreeze(s);
s->wait_for_unfreeze(s->opaque);
}
ret = s->close(s->opaque);