summaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-service-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r--src/namestore/gnunet-service-namestore.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index 101f2bd45..2286abecc 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -922,7 +922,7 @@ continue_store_activity (struct StoreActivity *sa)
sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
{
sa->zm_pos = zm->next; /* not interesting to this monitor */
- // continue; -- fails tests, but why not here?
+ continue; // -- fails tests, but why not here?
}
if (zm->limit == zm->iteration_cnt)
{
@@ -1980,23 +1980,9 @@ monitor_iterate_cb (void *cls,
{
struct ZoneMonitor *zm = cls;
- if ( (0 != memcmp (&zone_key,
- &zm->zone,
- sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) &&
- (0 != memcmp (&zm->zone,
- &zero,
- sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
- {
- GNUNET_break (0);
- return;
- }
zm->seq = seq;
- if (NULL == name)
- {
- /* finished with iteration */
- monitor_sync (zm);
- return;
- }
+ GNUNET_assert (NULL != name);
+ GNUNET_assert (zone_key == &zm->zone);
GNUNET_STATISTICS_update (statistics,
"Monitor notifications sent",
1,