diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /coreutils/stty.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) | |
download | busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.bz2 busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.zip |
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[] = { | |||
319 | }; | 319 | }; |
320 | 320 | ||
321 | enum { | 321 | enum { |
322 | NUM_mode_info = (sizeof(mode_info) / sizeof(mode_info[0])) | 322 | NUM_mode_info = ARRAY_SIZE(mode_info) |
323 | }; | 323 | }; |
324 | 324 | ||
325 | /* Control character settings */ | 325 | /* Control character settings */ |
@@ -371,7 +371,7 @@ static const struct control_info control_info[] = { | |||
371 | }; | 371 | }; |
372 | 372 | ||
373 | enum { | 373 | enum { |
374 | NUM_control_info = (sizeof(control_info) / sizeof(control_info[0])) | 374 | NUM_control_info = ARRAY_SIZE(control_info) |
375 | }; | 375 | }; |
376 | 376 | ||
377 | /* The width of the screen, for output wrapping */ | 377 | /* The width of the screen, for output wrapping */ |