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:
9
conf.c
9
conf.c
@@ -912,10 +912,6 @@ void conf(struct ctx *c, int argc, char **argv)
|
||||
|
||||
c->foreground = 1;
|
||||
break;
|
||||
case '?':
|
||||
case 'h':
|
||||
usage(argv[0]);
|
||||
break;
|
||||
case 's':
|
||||
if (*c->sock_path) {
|
||||
err("Multiple --socket options given");
|
||||
@@ -1142,6 +1138,11 @@ void conf(struct ctx *c, int argc, char **argv)
|
||||
usage(argv[0]);
|
||||
|
||||
break;
|
||||
case '?':
|
||||
case 'h':
|
||||
default:
|
||||
usage(argv[0]);
|
||||
break;
|
||||
}
|
||||
} while (name != -1);
|
||||
|
||||
|
Reference in New Issue
Block a user