Skip to content

warning-annoyance induced code-review

Phil Sutter netdev 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5lnstat: review lnstat_update()misc/lnstat_util.c+7 -110 replies
2/5ss: reduce max indentation level in init_service_resolver()misc/ss.c+30 -230 replies
3/5ss: review is_ephemeral()misc/ss.c+10 -220 replies
4/5get rid of remaining -Wunused-result warningsmisc/ifstat.c misc/lnstat_util.c misc/nstat.c +1 more+24 -90 replies
5/5get rid of unnecessary fgets() buffer size limitationmisc/arpd.c misc/ss.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [iproute PATCH 0/5] warning-annoyance induced code-review

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(-)
Signature · 1 line
2.5.0