summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wins.c')
-rw-r--r--src/wins.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wins.c b/src/wins.c
index 0a3f48f..bcc5a90 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -678,18 +678,15 @@ void wins_status_bar(void)
switch (active_panel) {
case CAL:
bindings = bindings_cal;
- bindings_size =
- sizeof(bindings_cal) / sizeof(bindings_cal[0]);
+ bindings_size = ARRAY_SIZE(bindings_cal);
break;
case APP:
bindings = bindings_apoint;
- bindings_size =
- sizeof(bindings_apoint) / sizeof(bindings_apoint[0]);
+ bindings_size = ARRAY_SIZE(bindings_apoint);
break;
case TOD:
bindings = bindings_todo;
- bindings_size =
- sizeof(bindings_todo) / sizeof(bindings_todo[0]);
+ bindings_size = ARRAY_SIZE(bindings_todo);
break;
default:
EXIT(_("unknown panel"));