From 14af0dbfceefe615ccc46da8358a38d6bf0164eb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 6 Apr 2019 14:59:00 +0200 Subject: force 'const' on type --- src/include/gnunet_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); }) -- cgit v1.2.3