diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-12 09:36:33 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-12 09:36:33 +0200 |
commit | 99f8204531ebb4d388eec7919afd4b7a3ae0b096 (patch) | |
tree | 8c606540b59d1cf0d8ee23114b54112c271af400 /src/util/test_peer.c | |
parent | be3bbfb4728669698ad7dabb5e0d8648d31a43a8 (diff) | |
download | gnunet-99f8204531ebb4d388eec7919afd4b7a3ae0b096.tar.gz gnunet-99f8204531ebb4d388eec7919afd4b7a3ae0b096.zip |
fix: GNUNET_is_zero(ptr) should return enum GNUNET_GenericReturnValue. Fixes #6475.
Diffstat (limited to 'src/util/test_peer.c')
-rw-r--r-- | src/util/test_peer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/test_peer.c b/src/util/test_peer.c index 320746c76..bb0bc48dc 100644 --- a/src/util/test_peer.c +++ b/src/util/test_peer.c | |||
@@ -106,8 +106,7 @@ check () | |||
106 | * is expected to be set to zero | 106 | * is expected to be set to zero |
107 | */GNUNET_log_skip (1, GNUNET_YES); | 107 | */GNUNET_log_skip (1, GNUNET_YES); |
108 | GNUNET_PEER_resolve (0, &res); | 108 | GNUNET_PEER_resolve (0, &res); |
109 | GNUNET_assert (0 == | 109 | GNUNET_assert (GNUNET_YES == GNUNET_is_zero (&res)); |
110 | GNUNET_is_zero (&res)); | ||
111 | 110 | ||
112 | /* Removing peer entries 1 and 3 from table using the list decrement function */ | 111 | /* Removing peer entries 1 and 3 from table using the list decrement function */ |
113 | /* If count = 0, nothing should be done whatsoever */ | 112 | /* If count = 0, nothing should be done whatsoever */ |