diff options
author | Elliott Hughes <enh@google.com> | 2019-03-03 22:42:26 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-04 07:30:47 -0600 |
commit | 6d1eb1ce40801323b65401a70ae5f9782939eeb4 (patch) | |
tree | d94f6577702a8b626c3a4d4e1d1991868681cdda /toys/pending | |
parent | 9be2e85165c3b93c87f63209c3597559333b1fc3 (diff) | |
download | toybox-6d1eb1ce40801323b65401a70ae5f9782939eeb4.tar.gz |
Consistently use ARRAY_LEN.
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/host.c b/toys/pending/host.c index 96daf8e8..fa830a7d 100644 --- a/toys/pending/host.c +++ b/toys/pending/host.c @@ -103,7 +103,7 @@ void host_main(void) if (TT.type_str[0]-'0' < 10u) type = atoi(TT.type_str); else { type = -1; - for (i=0; i < sizeof rrt / sizeof *rrt; i++) { + for (i=0; i<ARRAY_LEN(rrt); i++) { if (rrt[i].name && !strcasecmp(TT.type_str, rrt[i].name)) { type = i; break; |