]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-config.c
ui/ncurses: Use a separate type for help text
[petitboot] / ui / ncurses / nc-config.c
index 54eb7ac5740d891bd32c6a7bcc57655cbf19bc8a..a09535371c7131d1f09e19457ecfee2fb2cbef77 100644 (file)
@@ -35,7 +35,7 @@
 
 #define N_FIELDS       25
 
-extern const char *config_help_text;
+extern struct help_text config_help_text;
 
 enum autoboot_type {
        AUTOBOOT_ANY,
@@ -146,7 +146,7 @@ static void config_screen_process_key(struct nc_scr *scr, int key)
        } else if (screen->show_help) {
                screen->show_help = false;
                cui_show_help(screen->cui, _("System Configuration"),
-                               config_help_text);
+                               &config_help_text);
 
        } else if (handled) {
                pad_refresh(screen);