diff options
author | t3sserakt <t3ss@posteo.de> | 2020-08-28 17:57:44 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2020-08-28 17:57:53 +0200 |
commit | 2b552a5f5e85fab1c14af73735c0de61b46cc3dc (patch) | |
tree | 1ed739ddb116d77a7f2dfcc69c013f0eb9f731e7 /src/util/common_allocation.c | |
parent | 03f6a0233f72c2c4c3925f0d6f6f7a81987c6530 (diff) | |
parent | bbf9540c93da3c6b950920ee7eaae479c95403c5 (diff) | |
download | gnunet-2b552a5f5e85fab1c14af73735c0de61b46cc3dc.tar.gz gnunet-2b552a5f5e85fab1c14af73735c0de61b46cc3dc.zip |
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r-- | src/util/common_allocation.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c index 4aad49777..a404a1627 100644 --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c | |||
@@ -538,9 +538,9 @@ GNUNET_copy_message (const struct GNUNET_MessageHeader *msg) | |||
538 | * @param a pointer to @a n bytes which should be tested for the | 538 | * @param a pointer to @a n bytes which should be tested for the |
539 | * entire memory being zero'ed out. | 539 | * entire memory being zero'ed out. |
540 | * @param n number of bytes in @a to be tested | 540 | * @param n number of bytes in @a to be tested |
541 | * @return 0 if a is zero, non-zero otherwise | 541 | * @return GNUNET_YES if a is zero, GNUNET_NO otherwise |
542 | */ | 542 | */ |
543 | int | 543 | enum GNUNET_GenericReturnValue |
544 | GNUNET_is_zero_ (const void *a, | 544 | GNUNET_is_zero_ (const void *a, |
545 | size_t n) | 545 | size_t n) |
546 | { | 546 | { |
@@ -548,8 +548,8 @@ GNUNET_is_zero_ (const void *a, | |||
548 | 548 | ||
549 | for (size_t i = 0; i < n; i++) | 549 | for (size_t i = 0; i < n; i++) |
550 | if (b[i]) | 550 | if (b[i]) |
551 | return 1; | 551 | return GNUNET_NO; |
552 | return 0; | 552 | return GNUNET_YES; |
553 | } | 553 | } |
554 | 554 | ||
555 | 555 | ||