gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: force 'const' on type


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: force 'const' on type
Date: Sat, 06 Apr 2019 14:59:01 +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 14af0dbfc force 'const' on type
14af0dbfc is described below

commit 14af0dbfceefe615ccc46da8358a38d6bf0164eb
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Apr 6 14:59:00 2019 +0200

    force 'const' on type
---
 src/include/gnunet_common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 3a8479455..2c11ae15f 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -919,8 +919,8 @@ GNUNET_ntoh_double (double d);
  * the same pointer type.
  */
 #define GNUNET_memcmp(a,b) ({ \
-  const typeof(b) _a = (a); \
-  const typeof(a) _b = (b); \
+  const typeof(*b) * _a = (a); \
+  const typeof(*a) * _b = (b); \
   memcmp(_a, \
          _b, \
          sizeof (*a)); })

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



reply via email to

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