summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-08-19 21:05:39 +0100
committerRoy Marples <roy@marples.name>2018-08-19 21:05:39 +0100
commit2602d9907e20d890c827409c8240acafee0c4abc (patch)
tree21493a5b6bc924b88310cb90e9223af792a80772
parente203e7371294bf4b027f5a3d4c66c724a2dbd1af (diff)
downloaddhcpcd-2602d9907e20d890c827409c8240acafee0c4abc.tar.xz
Consistency
-rw-r--r--src/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 8a2cb9f8..49de6860 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -430,7 +430,7 @@ ipv6_mask(struct in6_addr *mask, int len)
bits = len % NBBY;
for (i = 0; i < bytes; i++)
mask->s6_addr[i] = 0xff;
- if (bits) {
+ if (bits != 0) {
/* Coverify false positive.
* bytelen cannot be 16 if bitlen is non zero */
/* coverity[overrun-local] */