#include "gnunet_statistics_service.h"
-#include "mesh_enc.h"
-#include "mesh_protocol_enc.h" // GNUNET_MESH_Data is shared
+#include "mesh.h"
+#include "mesh_protocol.h" /* GNUNET_MESH_Data is shared */
#include "gnunet-service-mesh_local.h"
/**
- * 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)
- 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)
- 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);
}