summaryrefslogtreecommitdiff
path: root/migration-tcp.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-02-22 17:36:47 +0100
committerJuan Quintela <quintela@redhat.com>2013-03-11 13:32:03 +0100
commitb352365f5abec075dede0222f1bc37674d64117c (patch)
tree89670a886c98d1bb2564cdbc40eadbc686e2b8c4 /migration-tcp.c
parent404a7c05bcc20c51fe1a9bf2deaeb4d6b658d3a3 (diff)
downloadqemu-b352365f5abec075dede0222f1bc37674d64117c.tar.gz
qemu-b352365f5abec075dede0222f1bc37674d64117c.tar.bz2
qemu-b352365f5abec075dede0222f1bc37674d64117c.zip
migration: eliminate s->migration_file
The indirection is useless now. Backends can open s->file directly. Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration-tcp.c')
-rw-r--r--migration-tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/migration-tcp.c b/migration-tcp.c
index 5ea4f3d2b6..b20ee58f55 100644
--- a/migration-tcp.c
+++ b/migration-tcp.c
@@ -35,11 +35,11 @@ static void tcp_wait_for_connect(int fd, void *opaque)
if (fd < 0) {
DPRINTF("migrate connect error\n");
- s->migration_file = NULL;
+ s->file = NULL;
migrate_fd_error(s);
} else {
DPRINTF("migrate connect success\n");
- s->migration_file = qemu_fopen_socket(fd, "wb");
+ s->file = qemu_fopen_socket(fd, "wb");
migrate_fd_connect(s);
}
}