Skip to content
Snippets Groups Projects
Commit 93487b17 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 16b0e102
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment