summaryrefslogtreecommitdiff
path: root/usr/gen_init_cpio.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-11 04:45:34 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-14 15:25:13 +0900
commit93487b17b147f22400378240d06f33badc3368da (patch)
treed4dfb6beb1160e422d4b87e34a0b1028dde12071 /usr/gen_init_cpio.c
parent16b0e10238b45251790ea1a2683855d4f8f3c1a3 (diff)
downloadlwn-93487b17b147f22400378240d06f33badc3368da.tar.gz
lwn-93487b17b147f22400378240d06f33badc3368da.zip
kconfig: nconf: refactor attributes setup code
The current attributes setup code is strange; the array attribute[] is set to values outside the range of the attribute_t enum. At least, attributes_t attributes[ATTR_MAX+1] = {0}; ... should be int attribute[ATTR_MAX+1] = {0}; Also, there is no need to hard-code the color-pair numbers in attributes_t. The current code is messy. Rewrite it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions