iproute2/ip
Phil Sutter d17b136f7d Use C99 style initializers everywhere
This big patch was compiled by vimgrepping for memset calls and changing
to C99 initializer if applicable. One notable exception is the
initialization of union bpf_attr in tc/tc_bpf.c: changing it would break
for older gcc versions (at least <=3.4.6).

Calls to memset for struct rtattr pointer fields for parse_rtattr*()
were just dropped since they are not needed.

The changes here allowed the compiler to discover some unused variables,
so get rid of them, too.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
2016-07-20 12:05:24 -07:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile ip: add MACsec support 2016-06-08 09:35:29 -07:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip.c ip: add MACsec support 2016-06-08 09:35:29 -07:00
ip6tunnel.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ip_common.h ip vrf: Add ipvrf_get_table 2016-07-06 21:28:31 -07:00
ipaddress.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipaddrlabel.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipfou.c utils: add get_be{16, 32, 64}, use them where possible 2016-06-08 09:30:37 -07:00
ipl2tp.c utils: provide get_hex to read a hex digit from a char 2016-06-08 09:30:41 -07:00
iplink.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iplink_bond.c lib/utils: introduce rt_addr_n2a_rta() 2016-03-27 10:37:35 -07:00
iplink_bond_slave.c iplink: bond_slave: Add missing help functions 2016-07-20 12:04:34 -07:00
iplink_bridge.c iplink: bridge: remove unnecessary returns 2016-02-21 12:00:47 -08:00
iplink_bridge_slave.c ip: code cleanup 2016-03-21 11:52:19 -07:00
iplink_can.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iplink_geneve.c geneve: fix IPv6 remote address reporting 2016-05-13 14:31:55 -07:00
iplink_hsr.c Added support for selection of new HSR version 2016-05-31 12:09:29 -07:00
iplink_ipoib.c ip: code cleanup 2016-03-21 11:52:19 -07:00
iplink_ipvlan.c ip: code cleanup 2016-03-21 11:52:19 -07:00
iplink_macvlan.c ip: code cleanup 2016-03-21 11:52:19 -07:00
iplink_vlan.c ip: code cleanup 2016-03-21 11:52:19 -07:00
iplink_vrf.c ip vrf: Add ipvrf_get_table 2016-07-06 21:28:31 -07:00
iplink_vxlan.c utils: add get_be{16, 32, 64}, use them where possible 2016-06-08 09:30:37 -07:00
ipmacsec.c ip: add MACsec support 2016-06-08 09:35:29 -07:00
ipmaddr.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipmonitor.c ip: code cleanup 2016-03-21 11:52:19 -07:00
ipmroute.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipneigh.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipnetconf.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipnetns.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipntable.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ipprefix.c lib/utils: introduce rt_addr_n2a_rta() 2016-03-27 10:37:35 -07:00
iproute.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iproute_lwtunnel.c utils: add get_be{16, 32, 64}, use them where possible 2016-06-08 09:30:37 -07:00
iproute_lwtunnel.h lwtunnel: Add encapsulation support to ip route 2015-10-16 16:13:22 -07:00
iprule.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iptoken.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iptunnel.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
iptuntap.c ip: code cleanup 2016-03-21 11:52:19 -07:00
ipxfrm.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_gre.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_gre6.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_ip6tnl.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_iptnl.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_veth.c ip: code cleanup 2016-03-21 11:52:19 -07:00
link_vti.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
link_vti6.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
routef ip/routef lifesaver 2007-07-10 18:29:20 -07:00
routel (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtm_map.c ip, realms: also allow to pass in raw realms value 2015-10-22 23:40:51 -07:00
rtmon.c ip: code cleanup 2016-03-21 11:52:19 -07:00
rtpr (Logical change 1.3) 2004-04-15 20:56:59 +00:00
static-syms.c Fix build when shared libraries are disabled 2013-03-13 08:29:59 -07:00
tcp_metrics.c ip/tcp_metrics: Simplify process_msg a bit 2016-06-27 11:00:54 -07:00
tunnel.c ip: code cleanup 2016-03-21 11:52:19 -07:00
tunnel.h ip{,6}tunnel: have a shared stats parser/printer 2015-12-18 11:46:21 -08:00
xfrm.h Fix FSF address in file headers 2013-12-06 15:05:07 -08:00
xfrm_monitor.c utils: make rt_addr_n2a() non-reentrant by default 2016-03-27 10:37:34 -07:00
xfrm_policy.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
xfrm_state.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00