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/test.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/test.c')
-rw-r--r-- | coreutils/test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 36fb38a64..7b87a42f9 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -146,7 +146,6 @@ static const struct t_op { | |||
146 | { ")" , RPAREN , PAREN }, | 146 | { ")" , RPAREN , PAREN }, |
147 | }; | 147 | }; |
148 | 148 | ||
149 | enum { NUM_OPS = sizeof(ops) / sizeof(ops[0]) }; | ||
150 | 149 | ||
151 | #if ENABLE_FEATURE_TEST_64 | 150 | #if ENABLE_FEATURE_TEST_64 |
152 | typedef int64_t arith_t; | 151 | typedef int64_t arith_t; |
@@ -471,7 +470,7 @@ static enum token t_lex(char *s) | |||
471 | return op->op_num; | 470 | return op->op_num; |
472 | } | 471 | } |
473 | op++; | 472 | op++; |
474 | } while (op < ops + NUM_OPS); | 473 | } while (op < ops + ARRAY_SIZE(ops)); |
475 | 474 | ||
476 | return OPERAND; | 475 | return OPERAND; |
477 | } | 476 | } |