free(hooks);
}
-static void boot_process(void *ctx, int *status)
+static void boot_process(void *ctx, int status __attribute__((unused)))
{
struct boot_task *task = ctx;
unsigned int clean_image = 0;
goto no_load;
} else {
task->state = BOOT_STATE_IMAGE_LOADING;
- *status = 0;
return;
}
}
goto no_load;
} else {
task->state = BOOT_STATE_INITRD_LOADING;
- *status = 0;
return;
}
} else {
goto no_load;
} else {
task->state = BOOT_STATE_FINISH;
- *status = 0;
return;
}
} else {
if (task->state != BOOT_STATE_FINISH) {
task->state = BOOT_STATE_UNKNOWN;
- *status = -1;
return;
}
}
talloc_free(task);
-
- *status = result;
}
int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd,
struct boot_task *boot_task;
struct pb_url *image = NULL;
const char *boot_desc;
- int result;
if (opt && opt->option->name)
boot_desc = opt->option->name;
boot_task->args = NULL;
}
- boot_process(boot_task, &result);
+ boot_process(boot_task, 0);
- return result;
+ return 0;
}