From 627e18fa8ad000ed92405cff3a88c36fd5f3027e Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Oct 2021 09:41:13 +0200 Subject: passt: Add cppcheck target, test, and address resulting warnings ...mostly false positives, but a number of very relevant ones too, in tcp_get_sndbuf(), tcp_conn_from_tap(), and siphash PREAMBLE(). Signed-off-by: Stefano Brivio --- passt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passt.h') diff --git a/passt.h b/passt.h index 68c42ca..ae3035f 100644 --- a/passt.h +++ b/passt.h @@ -44,7 +44,7 @@ union epoll_ref; */ union epoll_ref { struct { - uint32_t proto:8, + int32_t proto:8, s:24; union { union tcp_epoll_ref tcp; -- cgit v1.2.3