Browse Source

force 'const' on type

Christian Grothoff 5 years ago
parent
commit
14af0dbfce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/include/gnunet_common.h

+ 2 - 2
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)); })