aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/host.c
diff options
context:
space:
mode:
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;