gcc-8 warning fixes
Subsystems (2)
v2 cover gcc-8 warning fixes
This fixes most of the warnings when building with gcc-8. Still have issues with namespace and bpf.
Stephen Hemminger (9):
bridge: avoid snprint truncation on time
pedit: fix strncpy warning
ip: use strlcpy() to avoid truncation
tunnel: use strlcpy to avoid strncpy warnings
namespace: fix warning snprintf buffer
tc_class: fix snprintf warning
ematch: fix possible snprintf overflow
misc: avoid snprintf warnings in ss and nstat
bpf: avoid compiler warnings about strncpy
bridge/mdb.c | 4 ++-- ip/iplink.c | 14 +++++++------- ip/tunnel.c | 12 ++++++------ lib/bpf.c | 6 +++--- lib/namespace.c | 6 ++++-- misc/nstat.c | 4 ++-- misc/ss.c | 2 +- tc/m_ematch.c | 2 +- tc/m_pedit.c | 2 +- tc/tc_class.c | 5 +++-- 10 files changed, 30 insertions(+), 27 deletions(-)
Signature · 1 line
2.16.2