public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/2] Some static checker fixes
@ 2023-09-21  4:49 David Gibson
  2023-09-21  4:49 ` [PATCH v2 1/2] Avoid shadowing index(3) David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Gibson @ 2023-09-21  4:49 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

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 <string.h> to util.h which
exposed a classic C library gotcha in packet.c, so I fixed that too.

Changes since v1:
 * Updated missed comment to match code changes in 1/2
 * Fixed more places which shadowed index(3)

David Gibson (2):
  Avoid shadowing index(3)
  util: Consolidate and improve workarounds for clang-tidy issue 58992

 Makefile     |  2 +-
 icmp.c       |  5 -----
 packet.c     | 30 +++++++++++++++---------------
 packet.h     | 10 +++++-----
 tcp.c        | 22 ++++++++--------------
 tcp_splice.c |  2 +-
 util.c       | 12 ++++++------
 util.h       | 43 ++++++++++++++++++++++++++++++++++++++++++-
 8 files changed, 78 insertions(+), 48 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-09-27 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  4:49 [PATCH v2 0/2] Some static checker fixes David Gibson
2023-09-21  4:49 ` [PATCH v2 1/2] Avoid shadowing index(3) David Gibson
2023-09-21  4:49 ` [PATCH v2 2/2] util: Consolidate and improve workarounds for clang-tidy issue 58992 David Gibson
2023-09-27 17:04 ` [PATCH v2 0/2] Some static checker fixes Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).