diff options
author | jospaeth <spaethj@in.tum.de> | 2020-08-15 16:25:11 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-08-15 16:25:11 +0200 |
commit | 72a66ee46f2b2bcb3d2cc4376c6c7dc6b57c86aa (patch) | |
tree | 281f68831ea8527eea4b6641767a9cd0b5b91817 /src/util/common_allocation.c | |
parent | 91d9d4251d3b1d0fab1780da73b6969581d22ffe (diff) | |
parent | f1f40feb2beb5c036da0e2b93c433b09b920e0b4 (diff) | |
download | gnunet-72a66ee46f2b2bcb3d2cc4376c6c7dc6b57c86aa.tar.gz gnunet-72a66ee46f2b2bcb3d2cc4376c6c7dc6b57c86aa.zip |
Merge branch 'master' into spaeth/escrow_plugins
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 | ||