aboutsummaryrefslogtreecommitdiff
path: root/toys/other/blkid.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/other/blkid.c
parent9be2e85165c3b93c87f63209c3597559333b1fc3 (diff)
downloadtoybox-6d1eb1ce40801323b65401a70ae5f9782939eeb4.tar.gz
Consistently use ARRAY_LEN.
Diffstat (limited to 'toys/other/blkid.c')
-rw-r--r--toys/other/blkid.c2
1 files changed, 1 insertions, 1 deletions
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<ARRAY_LEN(fstypes); i++) {
uint64_t test;
// Skip tests not in this 4k block