summaryrefslogtreecommitdiff
path: root/libbb/speed_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/speed_table.c')
-rw-r--r--libbb/speed_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 6137b77..0f0b33d 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -54,7 +54,7 @@ static const struct speed_map speeds[] = {
#endif
};
-enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
+enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
unsigned int tty_baud_to_value(speed_t speed)
{