From db448a088c4b3403c74adfa9b27eb6e624181d9b Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 21 Sep 2011 18:12:58 +0200 Subject: 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 Reviewed-by: Anthony Liguori --- buffered_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buffered_file.c') 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); -- cgit v1.2.3