tweaks: rename two variables, away from single letters
parent
cd00d0975e
commit
b14ad451a9
14
src/global.c
14
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. */
|
/* 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
|
||||||
|
|
Loading…
Reference in New Issue