diff options
author | Juan Quintela <quintela@redhat.com> | 2011-09-21 18:12:58 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2011-10-20 13:23:51 +0200 |
commit | db448a088c4b3403c74adfa9b27eb6e624181d9b (patch) | |
tree | 7fec6cdeee8f66c0ddf2c28d5ddfb7df41ec1ffb | |
parent | 4fc7d8195f9c8433f8661b6156e5c57ff8d8e4fb (diff) |
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>
-rw-r--r-- | buffered_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buffered_file.c b/buffered_file.c index 94ecbbcea1..decc3bf928 100644 --- a/buffered_file.c +++ b/buffered_file.c @@ -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); |