diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-11-07 17:14:34 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-04-29 03:30:55 +0000 |
commit | cbfd42cc07cc1b684a1d512e1265a1cd5e47e677 (patch) | |
tree | fcedeba3b1b9697e124facd5916a08a035b0cae6 | |
parent | abab59f662b380f5ad46de03f9818f8c1f5ca0c4 (diff) | |
download | src-cbfd42cc07cc1b684a1d512e1265a1cd5e47e677.tar.gz src-cbfd42cc07cc1b684a1d512e1265a1cd5e47e677.zip |
wlandebug: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0])
Pull Request: https://github.com/freebsd/freebsd-src/pull/888
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
-rw-r--r-- | usr.sbin/wlandebug/wlandebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/wlandebug/wlandebug.c b/usr.sbin/wlandebug/wlandebug.c index b44d82d8dd1d..b086de94eb2a 100644 --- a/usr.sbin/wlandebug/wlandebug.c +++ b/usr.sbin/wlandebug/wlandebug.c @@ -33,7 +33,7 @@ * wlandebug [-i interface] flags * (default interface is wlan.0). */ -#include <sys/types.h> +#include <sys/param.h> #include <sys/sysctl.h> #include <net/if.h> @@ -47,7 +47,7 @@ #include <libifconfig.h> -#define N(a) (sizeof(a)/sizeof(a[0])) +#define N(a) nitems(a) const char *progname; |