]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
Use C99 style initializers everywhere
authorPhil Sutter <phil@nwl.cc>
Mon, 18 Jul 2016 14:48:42 +0000 (16:48 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 20 Jul 2016 19:05:24 +0000 (12:05 -0700)
commitd17b136f7d7dd6ed7ea518e4f068d3de735e8756
tree822b758ac6ee3ab064c6b55f7d6e2adc5067b771
parentd892aaf7400ac410864ab03b48891e34206b1307
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>
75 files changed:
bridge/fdb.c
bridge/link.c
bridge/mdb.c
bridge/vlan.c
genl/ctrl.c
ip/ip6tunnel.c
ip/ipaddress.c
ip/ipaddrlabel.c
ip/iplink.c
ip/iplink_can.c
ip/ipmaddr.c
ip/ipmroute.c
ip/ipneigh.c
ip/ipnetconf.c
ip/ipnetns.c
ip/ipntable.c
ip/iproute.c
ip/iprule.c
ip/iptoken.c
ip/iptunnel.c
ip/ipxfrm.c
ip/link_gre.c
ip/link_gre6.c
ip/link_ip6tnl.c
ip/link_iptnl.c
ip/link_vti.c
ip/link_vti6.c
ip/xfrm_policy.c
ip/xfrm_state.c
lib/libnetlink.c
lib/ll_map.c
misc/arpd.c
misc/ss.c
tc/e_bpf.c
tc/em_cmp.c
tc/em_ipset.c
tc/em_meta.c
tc/em_nbyte.c
tc/em_u32.c
tc/f_flow.c
tc/f_flower.c
tc/f_fw.c
tc/f_route.c
tc/f_rsvp.c
tc/f_u32.c
tc/m_bpf.c
tc/m_csum.c
tc/m_ematch.c
tc/m_gact.c
tc/m_ife.c
tc/m_mirred.c
tc/m_nat.c
tc/m_pedit.c
tc/m_police.c
tc/q_atm.c
tc/q_cbq.c
tc/q_choke.c
tc/q_codel.c
tc/q_dsmark.c
tc/q_fifo.c
tc/q_fq_codel.c
tc/q_hfsc.c
tc/q_htb.c
tc/q_netem.c
tc/q_red.c
tc/q_sfb.c
tc/q_sfq.c
tc/q_tbf.c
tc/tc_bpf.c
tc/tc_class.c
tc/tc_exec.c
tc/tc_filter.c
tc/tc_qdisc.c
tc/tc_stab.c
tc/tc_util.c