aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/nconf.gui.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-11 04:45:31 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-14 15:22:49 +0900
commit7f5ff55bf8eb99e42c10388ccffdfbb0a0caac67 (patch)
treee23c08fc32529f11d7a763de0a7d5461c5d1e890 /scripts/kconfig/nconf.gui.c
parentkconfig: mconf,nconf: remove unneeded '\0' termination after snprintf() (diff)
downloadlinux-dev-7f5ff55bf8eb99e42c10388ccffdfbb0a0caac67.tar.xz
linux-dev-7f5ff55bf8eb99e42c10388ccffdfbb0a0caac67.zip
kconfig: nconf: fix NORMAL attributes
The lower 8-bit of attributes should be 0, but this code wrongly sets it to NORMAL (=1). The correct one is A_NORMAL. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/nconf.gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c
index 77f525a8617c..a914f81092d7 100644
--- a/scripts/kconfig/nconf.gui.c
+++ b/scripts/kconfig/nconf.gui.c
@@ -70,7 +70,7 @@ static void normal_color_theme(void)
/* automatically add color... */
#define mkattr(name, attr) do { \
attributes[name] = attr | COLOR_PAIR(name); } while (0)
- mkattr(NORMAL, NORMAL);
+ mkattr(NORMAL, A_NORMAL);
mkattr(MAIN_HEADING, A_BOLD | A_UNDERLINE);
mkattr(MAIN_MENU_FORE, A_REVERSE);
@@ -102,7 +102,7 @@ static void no_colors_theme(void)
/* automatically add highlight, no color */
#define mkattrn(name, attr) { attributes[name] = attr; }
- mkattrn(NORMAL, NORMAL);
+ mkattrn(NORMAL, A_NORMAL);
mkattrn(MAIN_HEADING, A_BOLD | A_UNDERLINE);
mkattrn(MAIN_MENU_FORE, A_STANDOUT);