if (GNUNET_NO == GMC_is_origin (c, GNUNET_YES))
path_destroy (c->path);
- (void) GNUNET_CONTAINER_multihashmap_remove (connections, &c->id, c);
+ GNUNET_break (GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap_remove (connections, &c->id, c));
GNUNET_free (c);
}
void
GMD_search_stop (struct GMD_search_handle *h)
{
- (void) GNUNET_CONTAINER_multihashmap32_remove (get_requests, h->peer_id, h);
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_CONTAINER_multihashmap32_remove (get_requests,
+ h->peer_id, h));
GNUNET_DHT_get_stop (h->dhtget);
GNUNET_free (h);
}
\ No newline at end of file
/**
- * Remove a channel from a client
+ * Remove a channel from a client.
*
* @param client Client.
* @param chid Channel ID.
struct MeshChannel *ch)
{
if (GNUNET_MESH_LOCAL_CHANNEL_ID_SERV <= chid)
- (void) GNUNET_CONTAINER_multihashmap32_remove (client->incoming_channels,
- chid, ch);
+ GNUNET_break (GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap32_remove (client->incoming_channels,
+ chid, ch));
else if (GNUNET_MESH_LOCAL_CHANNEL_ID_CLI <= chid)
- (void) GNUNET_CONTAINER_multihashmap32_remove (client->own_channels,
- chid, ch);
+ GNUNET_break (GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap32_remove (client->own_channels,
+ chid, ch));
else
GNUNET_break (0);
}