static int
deregister_app (void *cls, const struct GNUNET_HashCode * key, void *value)
{
+ struct GNUNET_CONTAINER_MultiHashMap *h = cls;
GNUNET_break (GNUNET_YES ==
- GNUNET_CONTAINER_multihashmap_remove (applications, key,
- value));
+ GNUNET_CONTAINER_multihashmap_remove (h, key, value));
return GNUNET_OK;
}
/* deregister clients applications */
if (NULL != c->apps)
{
- GNUNET_CONTAINER_multihashmap_iterate (c->apps, &deregister_app, NULL);
+ GNUNET_CONTAINER_multihashmap_iterate (c->apps, &deregister_app, c->apps);
GNUNET_CONTAINER_multihashmap_destroy (c->apps);
}
if (0 == GNUNET_CONTAINER_multihashmap_size (applications) &&