void migrate_fd_error(MigrationState *s, const Error *error)

{

    trace_migrate_fd_error(error ? error_get_pretty(error) : "");

    assert(s->to_dst_file == NULL);

    migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,

                      MIGRATION_STATUS_FAILED);

    if (!s->error) {

        s->error = error_copy(error);

    }

    notifier_list_notify(&migration_state_notifiers, s);

}

void migrate_fd_error(MigrationState *s, const Error *error)

{

    trace_migrate_fd_error(error ? error_get_pretty(error) : "");

    assert(s->to_dst_file == NULL);

    migrate_set_state(&s->state, MIGRATION_STATUS_SETUP,

                      MIGRATION_STATUS_FAILED);

    if (!s->error) {

        s->error = error_copy(error);

    }

    notifier_list_notify(&migration_state_notifiers, s);

}

void FUNC_0(MigrationState *VAR_0, const Error *VAR_1)

{

    trace_migrate_fd_error(VAR_1 ? error_get_pretty(VAR_1) : "");

    assert(VAR_0->to_dst_file == NULL);

    migrate_set_state(&VAR_0->state, MIGRATION_STATUS_SETUP,

                      MIGRATION_STATUS_FAILED);

    if (!VAR_0->VAR_1) {

        VAR_0->VAR_1 = error_copy(VAR_1);

    }

    notifier_list_notify(&migration_state_notifiers, VAR_0);

}

void FUNC_0(MigrationState *VAR_0, const Error *VAR_1)
{ trace_migrate_fd_error(VAR_1 ? error_get_pretty(VAR_1) : ""); assert(VAR_0->to_dst_file == NULL); migrate_set_state(&VAR_0->state, MIGRATION_STATUS_SETUP,
MIGRATION_STATUS_FAILED); if (!VAR_0->VAR_1) { VAR_0->VAR_1 = error_copy(VAR_1); } notifier_list_notify(&migration_state_notifiers, VAR_0); }