tweaks: rename two variables, away from single letters

master
Benno Schulenberg 2019-09-27 18:53:44 +02:00
parent cd00d0975e
commit b14ad451a9
1 changed files with 7 additions and 7 deletions

View File

@ -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. */ /* Return the number of entries in the shortcut list for a given menu. */
size_t length_of_list(int menu) size_t length_of_list(int menu)
{ {
funcstruct *f; funcstruct *item;
size_t i = 0; size_t count = 0;
for (f = allfuncs; f != NULL; f = f->next) for (item = allfuncs; item != NULL; item = item->next)
if ((f->menus & menu) && first_sc_for(menu, f->func) != NULL) if ((item->menus & menu) && first_sc_for(menu, item->func) != NULL)
i++; count++;
if (i > MAIN_VISIBLE) if (count > MAIN_VISIBLE)
return MAIN_VISIBLE; return MAIN_VISIBLE;
else else
return i; return count;
} }
/* Return the shortcut that corresponds to the values of kbinput (the /* Return the shortcut that corresponds to the values of kbinput (the