mirror of
https://passt.top/passt
synced 2025-06-20 22:05:35 +02:00
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 <sbrivio@redhat.com>
This commit is contained in:
parent
c3f8e4d2cd
commit
627e18fa8a
17 changed files with 159 additions and 118 deletions
4
passt.c
4
passt.c
|
@ -272,7 +272,7 @@ static void pid_file(struct ctx *c) {
|
|||
* @argc: Argument count
|
||||
* @argv: Options, plus optional target PID for pasta mode
|
||||
*
|
||||
* Return: 0 once interrupted, non-zero on failure
|
||||
* Return: non-zero on failure
|
||||
*
|
||||
* #syscalls read write open close fork dup2 exit chdir ioctl writev syslog
|
||||
* #syscalls prlimit64 epoll_ctl epoll_create1 epoll_wait accept4 accept listen
|
||||
|
@ -394,6 +394,4 @@ loop:
|
|||
post_handler(&c, &now);
|
||||
|
||||
goto loop;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue