]> git.ozlabs.org Git - petitboot/blobdiff - ui/twin/main-generic.c
ui: pb_kexec_data -> pb_boot_data
[petitboot] / ui / twin / main-generic.c
index 91a525b9f82cf9106b5f04b3b9f315d5f4e63ccd..28a96e461f1223b1db244578c25790b37844591e 100644 (file)
@@ -207,7 +207,7 @@ static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
 
        pb_log("%s: %s\n", __func__, opt_data->name);
 
-       result = pb_run_kexec(opt_data->kd, client->dry_run);
+       result = pb_run_kexec(opt_data->bd, client->dry_run);
 
        return result;
 }
@@ -215,7 +215,7 @@ static int kexec_cb(struct pbt_client *client, struct pb_opt_data *opt_data)
 static int run(struct pbt_client *client)
 {
        while (1) {
-               int result = waiter_poll();
+               int result = waiter_poll(client->waitset);
 
                if (result < 0 && errno != EINTR) {
                        pb_log("%s: poll: %s\n", __func__, strerror(errno));