static void tcp_wait_for_connect(int fd, Error *err, void *opaque)

{

    MigrationState *s = opaque;



    if (fd < 0) {

        DPRINTF("migrate connect error: %s\n", error_get_pretty(err));

        s->to_dst_file = NULL;

        migrate_fd_error(s);

    } else {

        DPRINTF("migrate connect success\n");

        s->to_dst_file = qemu_fopen_socket(fd, "wb");

        migrate_fd_connect(s);

    }

}

static void tcp_wait_for_connect(int fd, Error *err, void *opaque)

{

    MigrationState *s = opaque;



    if (fd < 0) {

        DPRINTF("migrate connect error: %s\n", error_get_pretty(err));

        s->to_dst_file = NULL;

        migrate_fd_error(s);

    } else {

        DPRINTF("migrate connect success\n");

        s->to_dst_file = qemu_fopen_socket(fd, "wb");

        migrate_fd_connect(s);

    }

}

        migrate_fd_error(s);         migrate_fd_error(s);         migrate_fd_error(s);
static void FUNC_0(int VAR_0, Error *VAR_1, void *VAR_2)

{

    MigrationState *s = VAR_2;



    if (VAR_0 < 0) {

        DPRINTF("migrate connect error: %s\n", error_get_pretty(VAR_1));

        s->to_dst_file = NULL;

        migrate_fd_error(s);

    } else {

        DPRINTF("migrate connect success\n");

        s->to_dst_file = qemu_fopen_socket(VAR_0, "wb");

        migrate_fd_connect(s);

    }

}

static void FUNC_0(int VAR_0, Error *VAR_1, void *VAR_2)
{ MigrationState *s = VAR_2; if (VAR_0 < 0) { DPRINTF("migrate connect error: %s\n", error_get_pretty(VAR_1)); s->to_dst_file = NULL; migrate_fd_error(s); } else { DPRINTF("migrate connect success\n"); s->to_dst_file = qemu_fopen_socket(VAR_0, "wb"); migrate_fd_connect(s); } }