aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-03-03 22:42:26 -0800
committerRob Landley <rob@landley.net>2019-03-04 07:30:47 -0600
commit6d1eb1ce40801323b65401a70ae5f9782939eeb4 (patch)
treed94f6577702a8b626c3a4d4e1d1991868681cdda /scripts
parent9be2e85165c3b93c87f63209c3597559333b1fc3 (diff)
downloadtoybox-6d1eb1ce40801323b65401a70ae5f9782939eeb4.tar.gz
Consistently use 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 3ffb867d..ba47dd14 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<sizeof(toy_list)/sizeof(*toy_list); i++) {
+ for (i=1; i<ARRAY_LEN(toy_list); i++) {
int fl = toy_list[i].flags;
if (fl & TOYMASK_LOCATION) {
if (argc>1) {