mirror of https://gerrit.osmocom.org/simtrace2
minor style change: use ARRAY_SIZE
Change-Id: Ia5243c342535963a3800849cd5a7d183a510d2d6
This commit is contained in:
parent
1200a5228f
commit
86f48fc962
|
@ -169,8 +169,7 @@ extern int main(void)
|
|||
}
|
||||
|
||||
TRACE_INFO("calling configure of all configurations...\n\r");
|
||||
for (i = 1; i < sizeof(config_func_ptrs) / sizeof(config_func_ptrs[0]);
|
||||
++i) {
|
||||
for (i = 1; i < ARRAY_SIZE(config_func_ptrs); i++) {
|
||||
if (config_func_ptrs[i].configure)
|
||||
config_func_ptrs[i].configure();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue