mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
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:
parent
abab59f662
commit
cbfd42cc07
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user