gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: util/service.c: Fix clang w


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: util/service.c: Fix clang warning.
Date: Fri, 12 Apr 2019 08:48:25 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 0778ffa85 util/service.c: Fix clang warning.
0778ffa85 is described below

commit 0778ffa854d2bb626ebedfe3c1e8ca6a1209e42e
Author: ng0 <address@hidden>
AuthorDate: Fri Apr 12 06:47:43 2019 +0000

    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))
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 src/util/service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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])) !=

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]