We already had a couple of places we were working around clang-tidy
issue 58992, and the flow table series adds more. I got sick of ugly
inlines every time we used a syscall which returns a socket address,
so wrote a patch to consolidate the workarounds in one place.
However, that patch added an include of to util.h which
exposed a classic C library gotcha in packet.c, so I fixed that too.
David Gibson (2):
packet: Avoid shadowing index(3)
util: Consolidate and improve workarounds for clang-tidy issue 58992
Makefile | 2 +-
icmp.c | 5 -----
packet.c | 28 ++++++++++++++--------------
packet.h | 10 +++++-----
tcp.c | 8 +-------
util.h | 41 +++++++++++++++++++++++++++++++++++++++++
6 files changed, 62 insertions(+), 32 deletions(-)
--
2.41.0