mirror_iproute2/misc
Phil Sutter 62000e51e0 Use ARRAY_SIZE macro everywhere
This patch was generated by the following semantic patch (a trimmed down
version of what is shipped with Linux sources):

@@
type T;
T[] E;
@@
(
- (sizeof(E)/sizeof(*E))
+ ARRAY_SIZE(E)
|
- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
|
- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
)

The only manual adjustment was to include utils.h in misc/nstat.c to make
the macro known there.

Signed-off-by: Phil Sutter <phil@nwl.cc>
2016-06-29 09:18:18 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ifstat.c misc: fix style issues 2016-03-21 11:56:36 -07:00
lnstat_util.c misc: fix style issues 2016-03-21 11:56:36 -07:00
lnstat.c misc: fix style issues 2016-03-21 11:56:36 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
Makefile Make builds default to quiet mode 2016-05-31 12:13:07 -07:00
nstat.c Use ARRAY_SIZE macro everywhere 2016-06-29 09:18:18 -07:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c Use ARRAY_SIZE macro everywhere 2016-06-29 09:18:18 -07:00
ssfilter.h ss: Add support to filter on device 2016-06-28 12:09:01 -07:00
ssfilter.y ss: Add support to filter on device 2016-06-28 12:09:01 -07:00