force 'const' on type
authorChristian Grothoff <christian@grothoff.org>
Sat, 6 Apr 2019 12:59:00 +0000 (14:59 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 6 Apr 2019 12:59:00 +0000 (14:59 +0200)
src/include/gnunet_common.h

index 3a847945590871a6737b7b3cad26d68ac7c4c0f9..2c11ae15f342dcb4cf7649ae8a414d6f383764d4 100644 (file)
@@ -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)); })