aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-20 13:19:36 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commit11c7674129a81b5b69e00ad252a63186e15bf6b6 (patch)
treef154b439ba0497bf1626c47dc49f47d852ab00da /migration.c
parent749f7909d942f5c7425d0895242ce720cd663e92 (diff)
buffered_file: unfold migrate_fd_close
We only used it once, just remove the callback indirection. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/migration.c b/migration.c
index 30def68f1d..f647a3fccb 100644
--- a/migration.c
+++ b/migration.c
@@ -392,10 +392,8 @@ void migrate_fd_wait_for_unfreeze(MigrationState *s)
}
}
-static int migrate_fd_close(void *opaque)
+int migrate_fd_close(MigrationState *s)
{
- MigrationState *s = opaque;
-
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
return s->close(s);
}
@@ -431,9 +429,7 @@ void migrate_fd_connect(MigrationState *s)
int ret;
s->state = MIG_STATE_ACTIVE;
- s->file = qemu_fopen_ops_buffered(s,
- s->bandwidth_limit,
- migrate_fd_close);
+ s->file = qemu_fopen_ops_buffered(s, s->bandwidth_limit);
DPRINTF("beginning savevm\n");
ret = qemu_savevm_state_begin(s->file, &s->params);