hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/scripts/kconfig/mconf.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
3
- * Released under the terms of the GNU GPL v2.0.
44 *
55 * Introduced single menu mode (show all sub-menus in one large tree).
66 * 2002-11-06 Petr Baudis <pasky@ucw.cz>
....@@ -15,6 +15,7 @@
1515 #include <stdarg.h>
1616 #include <stdlib.h>
1717 #include <string.h>
18
+#include <strings.h>
1819 #include <signal.h>
1920 #include <unistd.h>
2021
....@@ -536,7 +537,7 @@
536537 }
537538
538539 val = sym_get_tristate_value(sym);
539
- if (sym_is_changable(sym)) {
540
+ if (sym_is_changeable(sym)) {
540541 switch (type) {
541542 case S_BOOLEAN:
542543 item_make("[%c]", val == no ? ' ' : '*');
....@@ -587,7 +588,7 @@
587588 } else {
588589 switch (type) {
589590 case S_BOOLEAN:
590
- if (sym_is_changable(sym))
591
+ if (sym_is_changeable(sym))
591592 item_make("[%c]", val == no ? ' ' : '*');
592593 else
593594 item_make("-%c-", val == no ? ' ' : '*');
....@@ -600,7 +601,7 @@
600601 case mod: ch = 'M'; break;
601602 default: ch = ' '; break;
602603 }
603
- if (sym_is_changable(sym)) {
604
+ if (sym_is_changeable(sym)) {
604605 if (sym->rev_dep.tri == mod)
605606 item_make("{%c}", ch);
606607 else
....@@ -617,7 +618,7 @@
617618 if (tmp < 0)
618619 tmp = 0;
619620 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu),
620
- (sym_has_value(sym) || !sym_is_changable(sym)) ?
621
+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
621622 "" : " (NEW)");
622623 item_set_tag('s');
623624 item_set_data(menu);
....@@ -625,7 +626,7 @@
625626 }
626627 }
627628 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu),
628
- (sym_has_value(sym) || !sym_is_changable(sym)) ?
629
+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
629630 "" : " (NEW)");
630631 if (menu->prompt->type == P_MENU) {
631632 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");
....@@ -936,7 +937,7 @@
936937 set_config_filename(dialog_input_result);
937938 return;
938939 }
939
- show_textbox(NULL, "Can't create file! Probably a nonexistent directory.", 5, 60);
940
+ show_textbox(NULL, "Can't create file!", 5, 60);
940941 break;
941942 case 1:
942943 show_helptext("Save Alternate Configuration", save_config_help);