aboutsummaryrefslogtreecommitdiff
path: root/buffered_file.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-09-21 18:12:58 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:51 +0200
commitdb448a088c4b3403c74adfa9b27eb6e624181d9b (patch)
tree7fec6cdeee8f66c0ddf2c28d5ddfb7df41ec1ffb /buffered_file.c
parent4fc7d8195f9c8433f8661b6156e5c57ff8d8e4fb (diff)
downloadqemu-db448a088c4b3403c74adfa9b27eb6e624181d9b.zip
qemu-db448a088c4b3403c74adfa9b27eb6e624181d9b.tar.gz
qemu-db448a088c4b3403c74adfa9b27eb6e624181d9b.tar.bz2
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>
Diffstat (limited to 'buffered_file.c')
-rw-r--r--buffered_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffered_file.c b/buffered_file.c
index 94ecbbc..decc3bf 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);