Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-25 14:55:35 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-25 14:55:35 +0400
commit80b8b39899a09c7516920cda5fd343b3086d4824 (patch)
treeaa9903fd6b64d19c5f640fa302272d85c92b204e /libbb/speed_table.c
parent1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff)
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
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 6137b7731..0f0b33d3b 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)
{