From 99f8204531ebb4d388eec7919afd4b7a3ae0b096 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Wed, 12 Aug 2020 09:36:33 +0200 Subject: fix: GNUNET_is_zero(ptr) should return enum GNUNET_GenericReturnValue. Fixes #6475. --- src/include/gnunet_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/gnunet_common.h') diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index b2f99cd55..fcaae1026 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -1173,9 +1173,9 @@ GNUNET_memcmp_ct_ (const void *b1, * @param a pointer to @a n bytes which should be tested for the * entire memory being zero'ed out. * @param n number of bytes in @a to be tested - * @return 0 if a is zero, non-zero otherwise + * @return GNUNET_YES if a is zero, GNUNET_NO otherwise */ -int +enum GNUNET_GenericReturnValue GNUNET_is_zero_ (const void *a, size_t n); @@ -1185,7 +1185,7 @@ GNUNET_is_zero_ (const void *a, * * @param a pointer to a struct which should be tested for the * entire memory being zero'ed out. - * @return 0 if a is zero, non-zero otherwise + * @return GNUNET_YES if a is zero, GNUNET_NO otherwise */ #define GNUNET_is_zero(a) \ GNUNET_is_zero_ (a, sizeof (*a)) -- cgit v1.2.3