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 b04429e..4075562 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -67,7 +67,7 @@ static const struct speed_map speeds[] = {
#endif
};
-static const int NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map));
+enum { NUM_SPEEDS = (sizeof(speeds) / sizeof(struct speed_map)) };
unsigned long bb_baud_to_value(speed_t speed)
{