commit b14ad451a9f9ca8bb3ac9a4db89c5cabda5c1f99 parent cd00d0975edc869128081f6dfff1f3af95ac934c Author: Benno Schulenberg <bensberg@telfort.nl> Date: Fri, 27 Sep 2019 18:53:44 +0200 tweaks: rename two variables, away from single letters Diffstat:
M | src/global.c | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/global.c b/src/global.c @@ -431,17 +431,17 @@ int the_code_for(void (*func)(void), int defaultval) /* Return the number of entries in the shortcut list for a given menu. */ size_t length_of_list(int menu) { - funcstruct *f; - size_t i = 0; + funcstruct *item; + size_t count = 0; - for (f = allfuncs; f != NULL; f = f->next) - if ((f->menus & menu) && first_sc_for(menu, f->func) != NULL) - i++; + for (item = allfuncs; item != NULL; item = item->next) + if ((item->menus & menu) && first_sc_for(menu, item->func) != NULL) + count++; - if (i > MAIN_VISIBLE) + if (count > MAIN_VISIBLE) return MAIN_VISIBLE; else - return i; + return count; } /* Return the shortcut that corresponds to the values of kbinput (the