aboutgitcodebugslistschat
path: root/ndp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-21 12:06:58 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-21 12:16:16 +0200
commit685b50c3ce33ccf8441b3ac6f5152389bd772b35 (patch)
tree1bbcb2443b5d36a5e64dc08a806f42b331c604a4 /ndp.c
parent627e18fa8ad000ed92405cff3a88c36fd5f3027e (diff)
downloadpasst-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar.gz
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar.bz2
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar.lz
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar.xz
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.tar.zst
passt-685b50c3ce33ccf8441b3ac6f5152389bd772b35.zip
Makefile: cppcheck target: Suppress unmatchedSuppression, pass CFLAGS
Some of those warnings don't trigger even on systems with very similar toolchains, suppress unmatchedSuppression warnings, they're basically useless. While at it, pass CFLAGS to cppcheck. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'ndp.c')
-rw-r--r--ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndp.c b/ndp.c
index 3a766ec..c04df6a 100644
--- a/ndp.c
+++ b/ndp.c
@@ -140,7 +140,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len)
for (n = 0; *c->dns_search[n].n; n++)
dns_s_len += strlen(c->dns_search[n].n) + 2;
- if (len) {
+ if (dns_s_len) {
*p++ = 31; /* DNSSL */
*p++ = (len + 8 - 1) / 8 + 1; /* length */
p += 2; /* reserved */