|
@@ -68,9 +68,9 @@ static void strip(char *str)
|
|
static void check_stdin(void)
|
|
static void check_stdin(void)
|
|
{
|
|
{
|
|
if (!valid_stdin) {
|
|
if (!valid_stdin) {
|
|
- printf(_("aborted!\n\n"));
|
|
+ printf("aborted!\n\n");
|
|
- printf(_("Console input/output is redirected. "));
|
|
+ printf("Console input/output is redirected. ");
|
|
- printf(_("Run 'make oldconfig' to update configuration.\n\n"));
|
|
+ printf("Run 'make oldconfig' to update configuration.\n\n");
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -80,7 +80,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
|
|
enum symbol_type type = sym_get_type(sym);
|
|
enum symbol_type type = sym_get_type(sym);
|
|
|
|
|
|
if (!sym_has_value(sym))
|
|
if (!sym_has_value(sym))
|
|
- printf(_("(NEW) "));
|
|
+ printf("(NEW) ");
|
|
|
|
|
|
line[0] = '\n';
|
|
line[0] = '\n';
|
|
line[1] = 0;
|
|
line[1] = 0;
|
|
@@ -102,8 +102,8 @@ static int conf_askvalue(struct symbol *sym, const char *def)
|
|
check_stdin();
|
|
check_stdin();
|
|
case ask_all:
|
|
case ask_all:
|
|
fflush(stdout);
|
|
fflush(stdout);
|
|
- fgets(line, 128, stdin);
|
|
+ if (fgets(line, 128, stdin) != NULL)
|
|
- return 1;
|
|
+ return 1;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -281,7 +281,7 @@ static int conf_choice(struct menu *menu)
|
|
if (child->sym->name)
|
|
if (child->sym->name)
|
|
printf(" (%s)", child->sym->name);
|
|
printf(" (%s)", child->sym->name);
|
|
if (!sym_has_value(child->sym))
|
|
if (!sym_has_value(child->sym))
|
|
- printf(_(" (NEW)"));
|
|
+ printf(" (NEW)");
|
|
printf("\n");
|
|
printf("\n");
|
|
}
|
|
}
|
|
printf(_("%*schoice"), indent - 1, "");
|
|
printf(_("%*schoice"), indent - 1, "");
|
|
@@ -304,8 +304,8 @@ static int conf_choice(struct menu *menu)
|
|
check_stdin();
|
|
check_stdin();
|
|
case ask_all:
|
|
case ask_all:
|
|
fflush(stdout);
|
|
fflush(stdout);
|
|
- fgets(line, 128, stdin);
|
|
+ if (fgets(line, 128, stdin) != NULL)
|
|
- strip(line);
|
|
+ strip(line);
|
|
if (line[0] == '?') {
|
|
if (line[0] == '?') {
|
|
printf("\n%s\n", get_help(menu));
|
|
printf("\n%s\n", get_help(menu));
|
|
continue;
|
|
continue;
|
|
@@ -419,7 +419,7 @@ static void check_conf(struct menu *menu)
|
|
if (sym_is_changable(sym) ||
|
|
if (sym_is_changable(sym) ||
|
|
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
|
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
|
if (!conf_cnt++)
|
|
if (!conf_cnt++)
|
|
- printf(_("*\n* Restart config...\n*\n"));
|
|
+ printf("*\n* Restart config...\n*\n");
|
|
rootEntry = menu_get_parent_menu(menu);
|
|
rootEntry = menu_get_parent_menu(menu);
|
|
conf(rootEntry);
|
|
conf(rootEntry);
|
|
}
|
|
}
|
|
@@ -484,11 +484,11 @@ int main(int ac, char **av)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case 'h':
|
|
case 'h':
|
|
- printf(_("See README for usage info\n"));
|
|
+ printf("See README for usage info\n");
|
|
exit(0);
|
|
exit(0);
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- fprintf(stderr, _("See README for usage info\n"));
|
|
+ fprintf(stderr, "See README for usage info\n");
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -559,7 +559,7 @@ int main(int ac, char **av)
|
|
name = getenv("KCONFIG_NOSILENTUPDATE");
|
|
name = getenv("KCONFIG_NOSILENTUPDATE");
|
|
if (name && *name) {
|
|
if (name && *name) {
|
|
fprintf(stderr,
|
|
fprintf(stderr,
|
|
- _("\n*** Kernel configuration requires explicit update.\n\n"));
|
|
+ "\n*** Kernel configuration requires explicit update.\n\n");
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -602,16 +602,16 @@ int main(int ac, char **av)
|
|
* All other commands are only used to generate a config.
|
|
* All other commands are only used to generate a config.
|
|
*/
|
|
*/
|
|
if (conf_get_changed() && conf_write(NULL)) {
|
|
if (conf_get_changed() && conf_write(NULL)) {
|
|
- fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
|
|
+ fprintf(stderr, "\n*** Error during writing of the kernel configuration.\n\n");
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
if (conf_write_autoconf()) {
|
|
if (conf_write_autoconf()) {
|
|
- fprintf(stderr, _("\n*** Error during update of the kernel configuration.\n\n"));
|
|
+ fprintf(stderr, "\n*** Error during update of the kernel configuration.\n\n");
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (conf_write(NULL)) {
|
|
if (conf_write(NULL)) {
|
|
- fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
|
|
+ fprintf(stderr, "\n*** Error during writing of the kernel configuration.\n\n");
|
|
exit(1);
|
|
exit(1);
|
|
}
|
|
}
|
|
}
|
|
}
|