netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute PATCH 0/3] Big C99 style initializer rework
@ 2016-06-17 15:56 Phil Sutter
  2016-06-17 15:56 ` [iproute PATCH 1/3] Use C99 style initializers everywhere Phil Sutter
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Phil Sutter @ 2016-06-17 15:56 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The first patch changes the code to use C99 style initializers where
applicable, mainly as an alternative to calling memset() and optionally
initializing individual fields afterwards.

The remaining patches contain some fallout from compiling the first one.

Phil Sutter (3):
  Use C99 style initializers everywhere
  Replace malloc && memset by calloc
  No need to initialize rtattr fields before parsing

 bridge/fdb.c       |  29 ++++++------
 bridge/link.c      |  16 +++----
 bridge/mdb.c       |  19 ++++----
 bridge/vlan.c      |  19 ++++----
 genl/ctrl.c        |  48 +++++++++-----------
 genl/genl.c        |   3 +-
 ip/ip6tunnel.c     |  10 ++---
 ip/ipaddress.c     |  33 ++++++--------
 ip/ipaddrlabel.c   |  23 +++++-----
 ip/iplink.c        |  67 +++++++++++++---------------
 ip/iplink_can.c    |   4 +-
 ip/ipmaddr.c       |  27 +++++------
 ip/ipmroute.c      |   8 +---
 ip/ipneigh.c       |  36 +++++++--------
 ip/ipnetconf.c     |  12 ++---
 ip/ipnetns.c       |  45 ++++++++++---------
 ip/ipntable.c      |  27 +++++------
 ip/iproute.c       |  85 +++++++++++++++--------------------
 ip/iprule.c        |  26 +++++------
 ip/iptoken.c       |  21 ++++-----
 ip/iptunnel.c      |  31 ++++---------
 ip/ipxfrm.c        |  26 +++--------
 ip/link_gre.c      |  22 ++++-----
 ip/link_gre6.c     |  22 ++++-----
 ip/link_ip6tnl.c   |  29 ++++++------
 ip/link_iptnl.c    |  26 +++++------
 ip/link_vti.c      |  22 ++++-----
 ip/link_vti6.c     |  22 ++++-----
 ip/xfrm_policy.c   | 110 +++++++++++++++++++++------------------------
 ip/xfrm_state.c    | 128 ++++++++++++++++++++++++++---------------------------
 lib/libnetlink.c   |  74 +++++++++++++------------------
 lib/ll_map.c       |   1 -
 lib/names.c        |   7 +--
 misc/arpd.c        |  68 ++++++++++++++--------------
 misc/lnstat.c      |   6 +--
 misc/lnstat_util.c |   4 +-
 misc/ss.c          |  41 ++++++++---------
 tc/e_bpf.c         |   7 +--
 tc/em_canid.c      |   3 +-
 tc/em_cmp.c        |   4 +-
 tc/em_ipset.c      |   4 +-
 tc/em_meta.c       |   4 +-
 tc/em_nbyte.c      |   4 +-
 tc/em_u32.c        |   4 +-
 tc/f_flow.c        |   3 --
 tc/f_flower.c      |   3 +-
 tc/f_fw.c          |   6 +--
 tc/f_route.c       |   3 --
 tc/f_rsvp.c        |   6 +--
 tc/f_u32.c         |  12 ++---
 tc/m_action.c      |  54 +++++++++-------------
 tc/m_bpf.c         |   5 +--
 tc/m_csum.c        |   4 +-
 tc/m_ematch.c      |   4 +-
 tc/m_gact.c        |   5 +--
 tc/m_ife.c         |   5 +--
 tc/m_ipt.c         |  13 ++----
 tc/m_mirred.c      |   7 +--
 tc/m_nat.c         |   4 +-
 tc/m_pedit.c       |  11 ++---
 tc/m_police.c      |   5 +--
 tc/q_atm.c         |   3 +-
 tc/q_cbq.c         |  22 +++------
 tc/q_choke.c       |   4 +-
 tc/q_codel.c       |   3 +-
 tc/q_dsmark.c      |   1 -
 tc/q_fifo.c        |   4 +-
 tc/q_fq_codel.c    |   3 +-
 tc/q_hfsc.c        |  13 ++----
 tc/q_htb.c         |  15 +++----
 tc/q_netem.c       |  16 +++----
 tc/q_red.c         |   4 +-
 tc/q_sfb.c         |  17 ++++---
 tc/q_sfq.c         |   4 +-
 tc/q_tbf.c         |   4 +-
 tc/tc.c            |   9 ++--
 tc/tc_bpf.c        | 100 +++++++++++++++++------------------------
 tc/tc_class.c      |  40 +++++++----------
 tc/tc_exec.c       |   6 +--
 tc/tc_filter.c     |  35 ++++++---------
 tc/tc_qdisc.c      |  35 ++++++---------
 tc/tc_stab.c       |   4 +-
 tc/tc_util.c       |   3 +-
 83 files changed, 721 insertions(+), 1001 deletions(-)

-- 
2.8.2

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-06-20  3:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 15:56 [iproute PATCH 0/3] Big C99 style initializer rework Phil Sutter
2016-06-17 15:56 ` [iproute PATCH 1/3] Use C99 style initializers everywhere Phil Sutter
2016-06-17 16:09   ` Daniel Borkmann
2016-06-18  0:02     ` Phil Sutter
2016-06-18  0:21       ` Stephen Hemminger
2016-06-20  3:39         ` David Ahern
     [not found]   ` <ddef688e6e3f4a1a895880de1f9f069d@HQ1WP-EXMB11.corp.brocade.com>
2016-06-17 16:34     ` Stephen Hemminger
2016-06-17 16:46       ` Daniel Borkmann
2016-06-17 16:58         ` Nicolas Dichtel
     [not found]         ` <9e1c05c7b4894137a80bdb3d2a361bbc@HQ1WP-EXMB11.corp.brocade.com>
2016-06-17 18:57           ` Stephen Hemminger
2016-06-17 20:15             ` David Ahern
2016-06-17 20:36               ` Daniel Borkmann
2016-06-17 20:47                 ` David Ahern
2016-06-17 15:56 ` [iproute PATCH 2/3] Replace malloc && memset by calloc Phil Sutter
2016-06-17 15:56 ` [iproute PATCH 3/3] No need to initialize rtattr fields before parsing Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).