mirror of
https://passt.top/passt
synced 2025-06-07 16:35:33 +02:00
passt: Add clang-tidy Makefile target and test, take care of warnings
Most are just about style and form, but a few were actually serious mistakes (NDP-related). Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
7f1e7019cb
commit
12cfa6444c
14 changed files with 172 additions and 73 deletions
3
dhcp.c
3
dhcp.c
|
@ -225,9 +225,8 @@ static void opt_set_dns_search(struct ctx *c, size_t max_len)
|
|||
buf[n++] = '\xc0';
|
||||
buf[n++] = dup;
|
||||
break;
|
||||
} else {
|
||||
buf[n++] = '.';
|
||||
}
|
||||
buf[n++] = '.';
|
||||
} else {
|
||||
buf[n++] = *p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue