diff options
Diffstat (limited to 'migration-fd.c')
-rw-r--r-- | migration-fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration-fd.c b/migration-fd.c index aee690aaed..8036a27d28 100644 --- a/migration-fd.c +++ b/migration-fd.c @@ -50,7 +50,7 @@ static int fd_close(FdMigrationState *s) return 0; } -MigrationState *fd_start_outgoing_migration(Monitor *mon, +FdMigrationState *fd_start_outgoing_migration(Monitor *mon, const char *fdname, int64_t bandwidth_limit, int detach, @@ -91,7 +91,7 @@ MigrationState *fd_start_outgoing_migration(Monitor *mon, } migrate_fd_connect(s); - return &s->mig_state; + return s; err_after_open: close(s->fd); |