netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iproute PATCH 0/5] warning-annoyance induced code-review
@ 2015-11-28  0:00 Phil Sutter
  2015-11-28  0:00 ` [iproute PATCH 1/5] lnstat: review lnstat_update() Phil Sutter
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Phil Sutter @ 2015-11-28  0:00 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

The primary goal was to get rid of the -Wunused-result warnings emitted
during compiling. While adding the necessary checks, I found a few
functions which could benefit from a bigger review (patches 1, 2 and 3).
Patch 4 then adds the remaining missing checks, and patch 5 simplifies
fgets() usage at a few spots.

Note that the last patch is my first Coccinelle-generated change, which
makes me especially proud. Many thanks again to Julia Lawall for her kind
support via IRC at this point!

Phil Sutter (5):
  lnstat: review lnstat_update()
  ss: reduce max indentation level in init_service_resolver()
  ss: review is_ephemeral()
  get rid of remaining -Wunused-result warnings
  get rid of unnecessary fgets() buffer size limitation

 misc/arpd.c        |   2 +-
 misc/ifstat.c      |   6 ++-
 misc/lnstat_util.c |  21 +++++------
 misc/nstat.c       |   6 ++-
 misc/ss.c          | 107 ++++++++++++++++++++++++++++-------------------------
 5 files changed, 74 insertions(+), 68 deletions(-)

-- 
2.5.0

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

end of thread, other threads:[~2015-11-29 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-28  0:00 [iproute PATCH 0/5] warning-annoyance induced code-review Phil Sutter
2015-11-28  0:00 ` [iproute PATCH 1/5] lnstat: review lnstat_update() Phil Sutter
2015-11-28  0:00 ` [iproute PATCH 2/5] ss: reduce max indentation level in init_service_resolver() Phil Sutter
2015-11-28  0:00 ` [iproute PATCH 3/5] ss: review is_ephemeral() Phil Sutter
2015-11-28  0:00 ` [iproute PATCH 4/5] get rid of remaining -Wunused-result warnings Phil Sutter
2015-11-28  0:00 ` [iproute PATCH 5/5] get rid of unnecessary fgets() buffer size limitation Phil Sutter
2015-11-29 19:51 ` [iproute PATCH 0/5] warning-annoyance induced code-review Stephen Hemminger

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).