diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-11-15 14:15:18 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-11-15 14:15:18 +0000 |
commit | ebfc819af3fe71c4f567afedc38baa803a00118e (patch) | |
tree | b03018560b05813b339278138beaaaa868493247 /src/mesh/gnunet-service-mesh_local.c | |
parent | 1b09a0ce59c5148d58cdec0a2eff3751e4e0b30e (diff) | |
download | gnunet-ebfc819af3fe71c4f567afedc38baa803a00118e.tar.gz gnunet-ebfc819af3fe71c4f567afedc38baa803a00118e.zip |
- show WARNING if elements were not in the hashmaps
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_local.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c index c85d39c87..eab222481 100644 --- a/src/mesh/gnunet-service-mesh_local.c +++ b/src/mesh/gnunet-service-mesh_local.c | |||
@@ -813,7 +813,7 @@ GML_channel_add (struct MeshClient *client, | |||
813 | 813 | ||
814 | 814 | ||
815 | /** | 815 | /** |
816 | * Remove a channel from a client | 816 | * Remove a channel from a client. |
817 | * | 817 | * |
818 | * @param client Client. | 818 | * @param client Client. |
819 | * @param chid Channel ID. | 819 | * @param chid Channel ID. |
@@ -825,11 +825,13 @@ GML_channel_remove (struct MeshClient *client, | |||
825 | struct MeshChannel *ch) | 825 | struct MeshChannel *ch) |
826 | { | 826 | { |
827 | if (GNUNET_MESH_LOCAL_CHANNEL_ID_SERV <= chid) | 827 | if (GNUNET_MESH_LOCAL_CHANNEL_ID_SERV <= chid) |
828 | (void) GNUNET_CONTAINER_multihashmap32_remove (client->incoming_channels, | 828 | GNUNET_break (GNUNET_YES == |
829 | chid, ch); | 829 | GNUNET_CONTAINER_multihashmap32_remove (client->incoming_channels, |
830 | chid, ch)); | ||
830 | else if (GNUNET_MESH_LOCAL_CHANNEL_ID_CLI <= chid) | 831 | else if (GNUNET_MESH_LOCAL_CHANNEL_ID_CLI <= chid) |
831 | (void) GNUNET_CONTAINER_multihashmap32_remove (client->own_channels, | 832 | GNUNET_break (GNUNET_YES == |
832 | chid, ch); | 833 | GNUNET_CONTAINER_multihashmap32_remove (client->own_channels, |
834 | chid, ch)); | ||
833 | else | 835 | else |
834 | GNUNET_break (0); | 836 | GNUNET_break (0); |
835 | } | 837 | } |