diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-20 00:05:11 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-20 08:34:22 +0200 |
commit | 12cfa6444cd239dbc04391027ad3161f53b6901c (patch) | |
tree | 3fa746cef0cf3f543ebbe2e0d1535a331a1f2bd0 /pasta.c | |
parent | 7f1e7019cbd47a13dde38782d4bc7430cecff8c4 (diff) | |
download | passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar.gz passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar.bz2 passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar.lz passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar.xz passt-12cfa6444cd239dbc04391027ad3161f53b6901c.tar.zst passt-12cfa6444cd239dbc04391027ad3161f53b6901c.zip |
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>
Diffstat (limited to 'pasta.c')
-rw-r--r-- | pasta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ void pasta_start_ns(struct ctx *c) close(fd); fd = open("/proc/self/setgroups", O_WRONLY); - if (write(fd, "deny", sizeof("deny"))) + if (write(fd, "deny", sizeof("deny")) < 0) warn("Cannot write to setgroups in namespace"); close(fd); |