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>
This commit is contained in:
Elyes Haouas 2023-11-07 18:14:34 +01:00 committed by Warner Losh
parent abab59f662
commit cbfd42cc07

View File

@ -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;