projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms...
[oweals/busybox.git]
/
coreutils
/
test.c
diff --git
a/coreutils/test.c
b/coreutils/test.c
index 36fb38a64606e7b4874a3a803321d118ef5bd517..7b87a42f92a1b2221cf6b2cae682bff4c4b38b4d 100644
(file)
--- a/
coreutils/test.c
+++ b/
coreutils/test.c
@@
-146,7
+146,6
@@
static const struct t_op {
{ ")" , RPAREN , PAREN },
};
-enum { NUM_OPS = sizeof(ops) / sizeof(ops[0]) };
#if ENABLE_FEATURE_TEST_64
typedef int64_t arith_t;
@@
-471,7
+470,7
@@
static enum token t_lex(char *s)
return op->op_num;
}
op++;
- } while (op < ops +
NUM_OPS
);
+ } while (op < ops +
ARRAY_SIZE(ops)
);
return OPERAND;
}