aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-03-10 17:36:00 -0500
committerRob Landley <rob@landley.net>2019-03-10 17:36:00 -0500
commite9d3a2a38d4629b71de709335c22e4a9fde2ed45 (patch)
tree28a635ef27b4d284c0ba8852c6bd2b0323208eb0 /scripts
parentdb6ed125e1aab845996d6326208c1509b7a8649c (diff)
downloadtoybox-e9d3a2a38d4629b71de709335c22e4a9fde2ed45.tar.gz
install.c doesn't include the standard headers so hasn't got ARRAY_LEN()
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install.c b/scripts/install.c
index ba47dd14..3ffb867d 100644
--- a/scripts/install.c
+++ b/scripts/install.c
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
int i, len = 0;
// Output list of applets.
- for (i=1; i<ARRAY_LEN(toy_list); i++) {
+ for (i=1; i<sizeof(toy_list)/sizeof(*toy_list); i++) {
int fl = toy_list[i].flags;
if (fl & TOYMASK_LOCATION) {
if (argc>1) {