summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-06 14:59:00 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-06 14:59:00 +0200
commit14af0dbfceefe615ccc46da8358a38d6bf0164eb (patch)
tree117351fe594a68b85b0305986bf933c31d24d998 /src
parent3f2205a65f3c6ce1a0f3c47185e19b29c2b407a7 (diff)
force 'const' on type
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_common.h4
1 files 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)); })