diff options
author | zhanghailiang | 2016-01-15 04:37:42 +0100 |
---|---|---|
committer | Amit Shah | 2016-02-05 14:39:50 +0100 |
commit | 89a02a9f7bb6a371a42d9b26b76f4c9590548a03 (patch) | |
tree | 0658190a5520b02461c030caca22f5474f8e5d11 /migration/tcp.c | |
parent | ram: Split host_from_stream_offset() into two helper functions (diff) | |
download | qemu-89a02a9f7bb6a371a42d9b26b76f4c9590548a03.tar.gz qemu-89a02a9f7bb6a371a42d9b26b76f4c9590548a03.tar.xz qemu-89a02a9f7bb6a371a42d9b26b76f4c9590548a03.zip |
migration: rename 'file' in MigrationState to 'to_dst_file'
Rename the 'file' member of MigrationState to 'to_dst_file' to
be consistent with to_src_file, from_src_file and from_dst_file.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1452829066-9764-3-git-send-email-zhang.zhanghailiang@huawei.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'migration/tcp.c')
-rw-r--r-- | migration/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/tcp.c b/migration/tcp.c index ae80e9443d..e888a4e490 100644 --- a/migration/tcp.c +++ b/migration/tcp.c @@ -39,11 +39,11 @@ static void tcp_wait_for_connect(int fd, Error *err, void *opaque) if (fd < 0) { DPRINTF("migrate connect error: %s\n", error_get_pretty(err)); - s->file = NULL; + s->to_dst_file = NULL; migrate_fd_error(s); } else { DPRINTF("migrate connect success\n"); - s->file = qemu_fopen_socket(fd, "wb"); + s->to_dst_file = qemu_fopen_socket(fd, "wb"); migrate_fd_connect(s); } } |