diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-21 10:58:14 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-16 00:09:07 +0100 |
commit | 8f86dd69f7f8568025a4cade627a197b59626b1e (patch) | |
tree | 25584707729566d13bf5395603222ab364be6805 | |
parent | f36b72b00db577494d98c88e60fcc17b1a72e42e (diff) | |
download | iwinfo-8f86dd69f7f8568025a4cade627a197b59626b1e.tar.gz |
cli: use IWINFO_HTMODE_COUNT
ARRAY_SIZE works too, but just the sake of consistency.
Signed-off-by: Andre Heider <a.heider@gmail.com>
-rw-r--r-- | iwinfo_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |