aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/host.c
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 /toys/pending/host.c
parent9be2e85165c3b93c87f63209c3597559333b1fc3 (diff)
downloadtoybox-6d1eb1ce40801323b65401a70ae5f9782939eeb4.tar.gz
Consistently use ARRAY_LEN.
Diffstat (limited to 'toys/pending/host.c')
-rw-r--r--toys/pending/host.c2
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;