projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: fix randconfig tristate detection
[carl9170fw.git]
/
config
/
confdata.c
diff --git
a/config/confdata.c
b/config/confdata.c
index 7a2bc8fc85658581bf83d931dee22c69249fce9b..423ac0661bb8494a7c13d77644fe5bec540abe48 100644
(file)
--- a/
config/confdata.c
+++ b/
config/confdata.c
@@
-1188,7
+1188,7
@@
void conf_set_all_new_symbols(enum conf_def_mode mode)
sym->def[S_DEF_USER].tri = no;
break;
case def_random:
sym->def[S_DEF_USER].tri = no;
break;
case def_random:
- cnt = sym
_get_type(sym)
== S_TRISTATE ? 3 : 2;
+ cnt = sym
->type
== S_TRISTATE ? 3 : 2;
sym->def[S_DEF_USER].tri = (tristate)(rand() % cnt);
break;
default:
sym->def[S_DEF_USER].tri = (tristate)(rand() % cnt);
break;
default: