diff options
Diffstat (limited to 'libbb/speed_table.c')
-rw-r--r-- | libbb/speed_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c index 6137b7731..0f0b33d3b 100644 --- a/libbb/speed_table.c +++ b/libbb/speed_table.c | |||
@@ -54,7 +54,7 @@ static const struct speed_map speeds[] = { | |||
54 | #endif | 54 | #endif |
55 | }; | 55 | }; |
56 | 56 | ||
57 | enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) }; | 57 | enum { NUM_SPEEDS = ARRAY_SIZE(speeds) }; |
58 | 58 | ||
59 | unsigned int tty_baud_to_value(speed_t speed) | 59 | unsigned int tty_baud_to_value(speed_t speed) |
60 | { | 60 | { |