diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-08-12 14:50:20 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-08-12 14:50:20 +0000 |
commit | fc8f7f91c13c6d6697c729c3f2d6b72a8fec1369 (patch) | |
tree | fcd8f89fad8710adae3edf235be46edc0854d6e8 /src/util/container_multihashmap.c | |
parent | 860c615d8efd0ca2cf8ba24a527b94ae6fc96918 (diff) | |
download | gnunet-fc8f7f91c13c6d6697c729c3f2d6b72a8fec1369.tar.gz gnunet-fc8f7f91c13c6d6697c729c3f2d6b72a8fec1369.zip |
- test for external iterator
- const added to result parameter of 'next'
Diffstat (limited to 'src/util/container_multihashmap.c')
-rw-r--r-- | src/util/container_multihashmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c index bd22732be..1cd699dff 100644 --- a/src/util/container_multihashmap.c +++ b/src/util/container_multihashmap.c | |||
@@ -838,7 +838,7 @@ GNUNET_CONTAINER_multihashmap_iterator_create (const struct GNUNET_CONTAINER_Mul | |||
838 | */ | 838 | */ |
839 | int | 839 | int |
840 | GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, | 840 | GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMapIterator *iter, |
841 | struct GNUNET_HashCode *key, void **value) | 841 | struct GNUNET_HashCode *key, const void **value) |
842 | { | 842 | { |
843 | /* make sure nobody modified the map */ | 843 | /* make sure nobody modified the map */ |
844 | GNUNET_assert (iter->modification_counter == iter->map->modification_counter); | 844 | GNUNET_assert (iter->modification_counter == iter->map->modification_counter); |