From 6d1eb1ce40801323b65401a70ae5f9782939eeb4 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 3 Mar 2019 22:42:26 -0800 Subject: Consistently use ARRAY_LEN. --- lib/lib.c | 4 ++-- scripts/install.c | 2 +- toys/other/blkid.c | 2 +- toys/other/modinfo.c | 6 +++--- toys/pending/host.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/lib.c b/lib/lib.c index 76d5765c..54bfc8c4 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -907,7 +907,7 @@ int sig_to_num(char *pidstr) if (!strncasecmp(pidstr, "sig", 3)) pidstr+=3; } - for (i = 0; i < sizeof(signames)/sizeof(struct signame); i++) + for (i=0; i1) { diff --git a/toys/other/blkid.c b/toys/other/blkid.c index b791fa62..38559981 100644 --- a/toys/other/blkid.c +++ b/toys/other/blkid.c @@ -80,7 +80,7 @@ static void do_blkid(int fd, char *name) if (len != sizeof(toybuf)) return; // Iterate through types in range - for (i=0; i < sizeof(fstypes)/sizeof(struct fstype); i++) { + for (i=0; i