From 7be4363a2828021fd486f7f45e792aecaf909454 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 11 May 2010 15:18:38 +0200 Subject: migration: Make *start_outgoing_migration return FdMigrationState Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori --- migration-tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'migration-tcp.c') diff --git a/migration-tcp.c b/migration-tcp.c index c431e03a48..05a121f1d1 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -75,7 +75,7 @@ static void tcp_wait_for_connect(void *opaque) } } -MigrationState *tcp_start_outgoing_migration(Monitor *mon, +FdMigrationState *tcp_start_outgoing_migration(Monitor *mon, const char *host_port, int64_t bandwidth_limit, int detach, @@ -131,7 +131,7 @@ MigrationState *tcp_start_outgoing_migration(Monitor *mon, } else if (ret >= 0) migrate_fd_connect(s); - return &s->mig_state; + return s; } static void tcp_accept_incoming_migration(void *opaque) -- cgit v1.2.3