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. --- toys/other/modinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/other/modinfo.c') diff --git a/toys/other/modinfo.c b/toys/other/modinfo.c index 126d1d63..eaf6cb98 100644 --- a/toys/other/modinfo.c +++ b/toys/other/modinfo.c @@ -51,18 +51,18 @@ static void modinfo_file(char *full_name) if (!buf) { perror_msg_raw(full_name); return; - } + } output_field("filename", full_name); for (pos = buf; pos < buf+len; pos++) { if (*pos) continue; - for (i = 0; i < sizeof(modinfo_tags) / sizeof(*modinfo_tags); i++) { + for (i=0; i