char *key = NULL;
int menu[sizeof(Menus) / sizeof(struct Mapping) - 1], r = 0, nummenus;
- key = parse_keymap(menu, s, sizeof(menu) / sizeof(menu[0]), &nummenus, err);
+ key = parse_keymap(menu, s, mutt_array_size(menu), &nummenus, err);
if (!key)
return -1;
char *seq = NULL;
char *key = NULL;
- key = parse_keymap(menu, s, sizeof(menu) / sizeof(menu[0]), &nummenus, err);
+ key = parse_keymap(menu, s, mutt_array_size(menu), &nummenus, err);
if (!key)
return -1;
return -1;
}
nops++;
- } while (MoreArgs(s) && nops < sizeof(ops) / sizeof(ops[0]));
+ } while (MoreArgs(s) && nops < mutt_array_size(ops));
while (nops)
mutt_push_macro_event(0, ops[--nops]);