diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 14:55:35 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 14:55:35 +0400 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /coreutils/stty.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) |
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index e6d054ff2..0983532cf 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c @@ -319,7 +319,7 @@ static const struct mode_info mode_info[] = { }; enum { - NUM_mode_info = (sizeof(mode_info) / sizeof(mode_info[0])) + NUM_mode_info = ARRAY_SIZE(mode_info) }; /* Control character settings */ @@ -371,7 +371,7 @@ static const struct control_info control_info[] = { }; enum { - NUM_control_info = (sizeof(control_info) / sizeof(control_info[0])) + NUM_control_info = ARRAY_SIZE(control_info) }; /* The width of the screen, for output wrapping */ |