mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
77 lines
2.4 KiB
Diff
77 lines
2.4 KiB
Diff
|
--- a/kconf/conf.c
|
||
|
+++ b/kconf/conf.c
|
||
|
@@ -86,7 +86,7 @@ static int conf_askvalue(struct symbol *
|
||
|
enum symbol_type type = sym_get_type(sym);
|
||
|
|
||
|
if (!sym_has_value(sym))
|
||
|
- printf(_("(NEW) "));
|
||
|
+ printf("%s", _("(NEW) "));
|
||
|
|
||
|
line[0] = '\n';
|
||
|
line[1] = 0;
|
||
|
@@ -282,7 +282,7 @@ static int conf_choice(struct menu *menu
|
||
|
if (child->sym->name)
|
||
|
printf(" (%s)", child->sym->name);
|
||
|
if (!sym_has_value(child->sym))
|
||
|
- printf(_(" (NEW)"));
|
||
|
+ printf("%s", _(" (NEW)"));
|
||
|
printf("\n");
|
||
|
}
|
||
|
printf(_("%*schoice"), indent - 1, "");
|
||
|
@@ -437,7 +437,7 @@ static void check_conf(struct menu *menu
|
||
|
}
|
||
|
} else {
|
||
|
if (!conf_cnt++)
|
||
|
- printf(_("*\n* Restart config...\n*\n"));
|
||
|
+ printf("%s", _("*\n* Restart config...\n*\n"));
|
||
|
rootEntry = menu_get_parent_menu(menu);
|
||
|
conf(rootEntry);
|
||
|
}
|
||
|
@@ -614,7 +614,7 @@ int main(int ac, char **av)
|
||
|
name = getenv("KCONFIG_NOSILENTUPDATE");
|
||
|
if (name && *name) {
|
||
|
fprintf(stderr,
|
||
|
- _("\n*** The configuration requires explicit update.\n\n"));
|
||
|
+ "%s", _("\n*** The configuration requires explicit update.\n\n"));
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
@@ -666,22 +666,22 @@ int main(int ac, char **av)
|
||
|
* All other commands are only used to generate a config.
|
||
|
*/
|
||
|
if (conf_get_changed() && conf_write(NULL)) {
|
||
|
- fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
|
||
|
+ fprintf(stderr, "%s", _("\n*** Error during writing of the configuration.\n\n"));
|
||
|
exit(1);
|
||
|
}
|
||
|
if (conf_write_autoconf()) {
|
||
|
- fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
|
||
|
+ fprintf(stderr, "%s", _("\n*** Error during update of the configuration.\n\n"));
|
||
|
return 1;
|
||
|
}
|
||
|
} else if (input_mode == savedefconfig) {
|
||
|
if (conf_write_defconfig(defconfig_file)) {
|
||
|
- fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"),
|
||
|
+ fprintf(stderr, _("\n*** Error while saving defconfig to: %s\n\n"),
|
||
|
defconfig_file);
|
||
|
return 1;
|
||
|
}
|
||
|
} else if (input_mode != listnewconfig) {
|
||
|
if (conf_write(NULL)) {
|
||
|
- fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
|
||
|
+ fprintf(stderr, "%s", _("\n*** Error during writing of the configuration.\n\n"));
|
||
|
exit(1);
|
||
|
}
|
||
|
}
|
||
|
--- a/kconf/Makefile
|
||
|
+++ b/kconf/Makefile
|
||
|
@@ -17,7 +17,7 @@ clean:
|
||
|
zconf.tab.c: zconf.lex.c
|
||
|
|
||
|
%.tab.c: %.y
|
||
|
- $(YACC) -o$@ -t -l $<
|
||
|
+ $(YACC) -Wno-yacc -o$@ -t -l $<
|
||
|
|
||
|
%.lex.c: %.l
|
||
|
$(LEX) -o$@ -L $<
|