hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/scripts/kconfig/nconf.c
....@@ -1,14 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
2
- * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com?
3
- * Released under the terms of the GNU GPL v2.0.
3
+ * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com>
44 *
55 * Derived from menuconfig.
6
- *
76 */
87 #ifndef _GNU_SOURCE
98 #define _GNU_SOURCE
109 #endif
1110 #include <string.h>
11
+#include <strings.h>
1212 #include <stdlib.h>
1313
1414 #include "lkc.h"
....@@ -755,7 +755,6 @@
755755 switch (ptype) {
756756 case P_MENU:
757757 child_count++;
758
- prompt = prompt;
759758 if (single_menu_mode) {
760759 item_make(menu, 'm',
761760 "%s%*c%s",
....@@ -804,7 +803,7 @@
804803 }
805804
806805 val = sym_get_tristate_value(sym);
807
- if (sym_is_changable(sym)) {
806
+ if (sym_is_changeable(sym)) {
808807 switch (type) {
809808 case S_BOOLEAN:
810809 item_make(menu, 't', "[%c]",
....@@ -858,7 +857,7 @@
858857 } else {
859858 switch (type) {
860859 case S_BOOLEAN:
861
- if (sym_is_changable(sym))
860
+ if (sym_is_changeable(sym))
862861 item_make(menu, 't', "[%c]",
863862 val == no ? ' ' : '*');
864863 else
....@@ -877,7 +876,7 @@
877876 ch = ' ';
878877 break;
879878 }
880
- if (sym_is_changable(sym)) {
879
+ if (sym_is_changeable(sym)) {
881880 if (sym->rev_dep.tri == mod)
882881 item_make(menu,
883882 't', "{%c}", ch);
....@@ -897,14 +896,14 @@
897896 item_add_str("%*c%s%s", tmp, ' ',
898897 menu_get_prompt(menu),
899898 (sym_has_value(sym) ||
900
- !sym_is_changable(sym)) ? "" :
899
+ !sym_is_changeable(sym)) ? "" :
901900 " (NEW)");
902901 goto conf_childs;
903902 }
904903 }
905904 item_add_str("%*c%s%s", indent + 1, ' ',
906905 menu_get_prompt(menu),
907
- (sym_has_value(sym) || !sym_is_changable(sym)) ?
906
+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
908907 "" : " (NEW)");
909908 if (menu->prompt && menu->prompt->type == P_MENU) {
910909 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");
....@@ -1439,8 +1438,7 @@
14391438 set_config_filename(dialog_input_result);
14401439 return;
14411440 }
1442
- btn_dialog(main_window, "Can't create file! "
1443
- "Probably a nonexistent directory.",
1441
+ btn_dialog(main_window, "Can't create file!",
14441442 1, "<OK>");
14451443 break;
14461444 case 1: