| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> |
|---|
| 3 | | - * Released under the terms of the GNU GPL v2.0. |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * Introduced single menu mode (show all sub-menus in one large tree). |
|---|
| 6 | 6 | * 2002-11-06 Petr Baudis <pasky@ucw.cz> |
|---|
| .. | .. |
|---|
| 15 | 15 | #include <stdarg.h> |
|---|
| 16 | 16 | #include <stdlib.h> |
|---|
| 17 | 17 | #include <string.h> |
|---|
| 18 | +#include <strings.h> |
|---|
| 18 | 19 | #include <signal.h> |
|---|
| 19 | 20 | #include <unistd.h> |
|---|
| 20 | 21 | |
|---|
| .. | .. |
|---|
| 536 | 537 | } |
|---|
| 537 | 538 | |
|---|
| 538 | 539 | val = sym_get_tristate_value(sym); |
|---|
| 539 | | - if (sym_is_changable(sym)) { |
|---|
| 540 | + if (sym_is_changeable(sym)) { |
|---|
| 540 | 541 | switch (type) { |
|---|
| 541 | 542 | case S_BOOLEAN: |
|---|
| 542 | 543 | item_make("[%c]", val == no ? ' ' : '*'); |
|---|
| .. | .. |
|---|
| 587 | 588 | } else { |
|---|
| 588 | 589 | switch (type) { |
|---|
| 589 | 590 | case S_BOOLEAN: |
|---|
| 590 | | - if (sym_is_changable(sym)) |
|---|
| 591 | + if (sym_is_changeable(sym)) |
|---|
| 591 | 592 | item_make("[%c]", val == no ? ' ' : '*'); |
|---|
| 592 | 593 | else |
|---|
| 593 | 594 | item_make("-%c-", val == no ? ' ' : '*'); |
|---|
| .. | .. |
|---|
| 600 | 601 | case mod: ch = 'M'; break; |
|---|
| 601 | 602 | default: ch = ' '; break; |
|---|
| 602 | 603 | } |
|---|
| 603 | | - if (sym_is_changable(sym)) { |
|---|
| 604 | + if (sym_is_changeable(sym)) { |
|---|
| 604 | 605 | if (sym->rev_dep.tri == mod) |
|---|
| 605 | 606 | item_make("{%c}", ch); |
|---|
| 606 | 607 | else |
|---|
| .. | .. |
|---|
| 617 | 618 | if (tmp < 0) |
|---|
| 618 | 619 | tmp = 0; |
|---|
| 619 | 620 | 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)) ? |
|---|
| 621 | 622 | "" : " (NEW)"); |
|---|
| 622 | 623 | item_set_tag('s'); |
|---|
| 623 | 624 | item_set_data(menu); |
|---|
| .. | .. |
|---|
| 625 | 626 | } |
|---|
| 626 | 627 | } |
|---|
| 627 | 628 | 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)) ? |
|---|
| 629 | 630 | "" : " (NEW)"); |
|---|
| 630 | 631 | if (menu->prompt->type == P_MENU) { |
|---|
| 631 | 632 | item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); |
|---|
| .. | .. |
|---|
| 936 | 937 | set_config_filename(dialog_input_result); |
|---|
| 937 | 938 | return; |
|---|
| 938 | 939 | } |
|---|
| 939 | | - show_textbox(NULL, "Can't create file! Probably a nonexistent directory.", 5, 60); |
|---|
| 940 | + show_textbox(NULL, "Can't create file!", 5, 60); |
|---|
| 940 | 941 | break; |
|---|
| 941 | 942 | case 1: |
|---|
| 942 | 943 | show_helptext("Save Alternate Configuration", save_config_help); |
|---|