gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: clang is only happy with 's


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: clang is only happy with 'static', not with ={0}
Date: Fri, 12 Apr 2019 09:38:05 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 10a9ae85e clang is only happy with 'static', not with ={0}
10a9ae85e is described below

commit 10a9ae85edd4f0de7f06b96ed839d576a724b4a4
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Apr 12 09:38:02 2019 +0200

    clang is only happy with 'static', not with ={0}
---
 src/include/gnunet_common.h | 4 ++--
 src/util/service.c          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 2c11ae15f..94ecd06f8 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -933,8 +933,8 @@ GNUNET_ntoh_double (double d);
  *          entire memory being zero'ed out.
  */
 #define GNUNET_is_zero(a) ({ \
-  const typeof(*a) _z = { 0 };      \
-  memcmp(a, \
+  static const typeof(*a) _z;      \
+  memcmp((a), \
          &_z, \
          sizeof (_z)); })
 
diff --git a/src/util/service.c b/src/util/service.c
index 3fe9b5883..4fd16f93d 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]