mirror_iproute2/misc
Simon Horman 1dd0cca7fa ss: initialise variables outside of for loop
Initialise for loops outside of for loops. GCC flags this as being
out of spec unless C99 or C11 mode is used.

With this change the entire tree appears to compile cleanly with -Wall.

$ gcc --version
gcc (Debian 4.9.2-10) 4.9.2
...
$ make
...
ss.c: In function ‘unix_show_sock’:
ss.c:3128:4: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
...

Signed-off-by: Simon Horman <simon.horman@netronome.com>
2016-12-02 14:17:09 -08:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ifstat.c ifstat/nstat: fix help output alignment 2016-11-29 13:17:08 -08:00
lnstat_util.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -07:00
lnstat.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -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 ifstat/nstat: fix help output alignment 2016-11-29 13:17:08 -08:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c ss: initialise variables outside of for loop 2016-12-02 14:17:09 -08:00
ssfilter.h ss: Support displaying and filtering on socket marks. 2016-09-22 16:34:40 -07:00
ssfilter.y ss: Support displaying and filtering on socket marks. 2016-09-22 16:34:40 -07:00