aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lxdialog/lxdialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/lxdialog/lxdialog.c')
-rw-r--r--scripts/kconfig/lxdialog/lxdialog.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/scripts/kconfig/lxdialog/lxdialog.c b/scripts/kconfig/lxdialog/lxdialog.c
index 2c34ea1e0a41..79f6c5fb5cef 100644
--- a/scripts/kconfig/lxdialog/lxdialog.c
+++ b/scripts/kconfig/lxdialog/lxdialog.c
@@ -31,12 +31,11 @@ struct Mode {
31 jumperFn *jumper; 31 jumperFn *jumper;
32}; 32};
33 33
34jumperFn j_menu, j_checklist, j_radiolist, j_yesno, j_textbox, j_inputbox; 34jumperFn j_menu, j_radiolist, j_yesno, j_textbox, j_inputbox;
35jumperFn j_msgbox, j_infobox; 35jumperFn j_msgbox, j_infobox;
36 36
37static struct Mode modes[] = { 37static struct Mode modes[] = {
38 {"--menu", 9, 0, 3, j_menu}, 38 {"--menu", 9, 0, 3, j_menu},
39 {"--checklist", 9, 0, 3, j_checklist},
40 {"--radiolist", 9, 0, 3, j_radiolist}, 39 {"--radiolist", 9, 0, 3, j_radiolist},
41 {"--yesno", 5, 5, 1, j_yesno}, 40 {"--yesno", 5, 5, 1, j_yesno},
42 {"--textbox", 5, 5, 1, j_textbox}, 41 {"--textbox", 5, 5, 1, j_textbox},
@@ -151,7 +150,6 @@ static void Usage(const char *name)
151\nBox options:\ 150\nBox options:\
152\n\ 151\n\
153\n --menu <text> <height> <width> <menu height> <tag1> <item1>...\ 152\n --menu <text> <height> <width> <menu height> <tag1> <item1>...\
154\n --checklist <text> <height> <width> <list height> <tag1> <item1> <status1>...\
155\n --radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...\ 153\n --radiolist <text> <height> <width> <list height> <tag1> <item1> <status1>...\
156\n --textbox <file> <height> <width>\ 154\n --textbox <file> <height> <width>\
157\n --inputbox <text> <height> <width> [<init>]\ 155\n --inputbox <text> <height> <width> [<init>]\
@@ -170,16 +168,10 @@ int j_menu(const char *t, int ac, const char *const *av)
170 atoi(av[5]), av[6], (ac - 6) / 2, av + 7); 168 atoi(av[5]), av[6], (ac - 6) / 2, av + 7);
171} 169}
172 170
173int j_checklist(const char *t, int ac, const char *const *av)
174{
175 return dialog_checklist(t, av[2], atoi(av[3]), atoi(av[4]),
176 atoi(av[5]), (ac - 6) / 3, av + 6, FLAG_CHECK);
177}
178
179int j_radiolist(const char *t, int ac, const char *const *av) 171int j_radiolist(const char *t, int ac, const char *const *av)
180{ 172{
181 return dialog_checklist(t, av[2], atoi(av[3]), atoi(av[4]), 173 return dialog_checklist(t, av[2], atoi(av[3]), atoi(av[4]),
182 atoi(av[5]), (ac - 6) / 3, av + 6, FLAG_RADIO); 174 atoi(av[5]), (ac - 6) / 3, av + 6);
183} 175}
184 176
185int j_textbox(const char *t, int ac, const char *const *av) 177int j_textbox(const char *t, int ac, const char *const *av)