summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-12 06:47:43 +0000
committerng0 <ng0@n0.is>2019-04-12 06:47:43 +0000
commit0778ffa854d2bb626ebedfe3c1e8ca6a1209e42e (patch)
tree707640bbff46bb575915e4bd507bda90484643f8
parentd4442d0f774b61709f3cfc3c51421096e3e3eb53 (diff)
util/service.c: Fix clang warning.
service.c:481:15: warning: suggest braces around initialization of subobject [-Wmissing-braces] while (0 != GNUNET_is_zero (&list[i].network)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--src/util/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 4fd16f93d..3fe9b5883 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -478,7 +478,7 @@ check_ipv6_listed (const struct GNUNET_STRINGS_IPv6NetworkPolicy *list,
return GNUNET_NO;
i = 0;
NEXT:
- while (0 != GNUNET_is_zero (&list[i].network))
+ while (0 != (GNUNET_is_zero (&list[i].network)))
{
for (j = 0; j < sizeof (struct in6_addr) / sizeof (int); j++)
if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) !=