Shadowed variables cause bugs. Fix the ones already in the tree, then
turn on -Wshadow so new ones don't get in.
Stephen Hemminger (10):
xfrm: rename shadowed SA direction local
ip address: rename the shadowed parameter of ipaddr_reset_filter()
lib: rename parameters that shadow globals
xfrm: rename local netlink handles that shadow the global rth
tc: rename and drop shadowing locals
ip: rename and drop shadowing locals
ifstat: rename shadowing local
bridge, devlink, rdma: rename shadowing locals
ss: fix shadowed variable warnings
Makefile: enable shadowed variable warnings
Makefile | 2 +-
bridge/mdb.c | 6 ++--
devlink/devlink.c | 16 ++++-----
include/color.h | 2 +-
include/json_print.h | 10 +++---
ip/ip_common.h | 2 +-
ip/ipaddress.c | 16 ++++-----
ip/ipnexthop.c | 1 -
ip/iproute.c | 4 +--
ip/ipxfrm.c | 8 ++---
ip/xfrm_policy.c | 81 ++++++++++++++++++++++----------------------
ip/xfrm_state.c | 69 +++++++++++++++++++------------------
lib/color.c | 4 +--
lib/json_print.c | 18 +++++-----
misc/ifstat.c | 4 +--
rdma/rdma.c | 20 +++++------
ss/inet.c | 11 +++---
ss/tcp.c | 6 ++--
tc/f_route.c | 1 -
tc/m_pedit.c | 2 --
tc/tc_monitor.c | 12 +++----
21 files changed, 144 insertions(+), 151 deletions(-)
--
2.53.0