From 12cfa6444cd239dbc04391027ad3161f53b6901c Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 20 Oct 2021 00:05:11 +0200 Subject: 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 --- dhcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dhcp.c') diff --git a/dhcp.c b/dhcp.c index 7deced1..5c74604 100644 --- a/dhcp.c +++ b/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; } -- cgit v1.2.3