From: Andre Heider Date: Mon, 21 Nov 2022 09:58:14 +0000 (+0100) Subject: cli: use IWINFO_HTMODE_COUNT X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8f86dd69f7f8568025a4cade627a197b59626b1e;p=project%2Fiwinfo.git cli: use IWINFO_HTMODE_COUNT ARRAY_SIZE works too, but just the sake of consistency. Signed-off-by: Andre Heider --- 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]);