From 8f86dd69f7f8568025a4cade627a197b59626b1e Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 21 Nov 2022 10:58:14 +0100 Subject: [PATCH] cli: use IWINFO_HTMODE_COUNT ARRAY_SIZE works too, but just the sake of consistency. Signed-off-by: Andre Heider --- iwinfo_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iwinfo_cli.c b/iwinfo_cli.c index b43c52e..7aa990c 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -814,7 +814,7 @@ static void print_htmodelist(const struct iwinfo_ops *iw, const char *ifname) return; } - for (i = 0; i < ARRAY_SIZE(IWINFO_HTMODE_NAMES); i++) + for (i = 0; i < IWINFO_HTMODE_COUNT; i++) if (htmodes & (1 << i)) printf("%s ", IWINFO_HTMODE_NAMES[i]); -- 2.30.2