summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-11-02 12:49:26 +0100
committerJulius Bünger <buenger@mytum.de>2018-11-02 12:51:26 +0100
commitedbb87266a92db6a08dd38963829cad954cceef6 (patch)
tree96aea05de415abb73d4c02b2034e2b1b83573b5f /src
parente5927972078cb8af636c9bcb18e228bae8dd1aaf (diff)
RPS: Adapt to new hashmap API - discard const
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index dec921903..20b314db3 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -779,8 +779,7 @@ get_rand_peer_iterator (void *cls,
* @return a random peer
*/
static const struct GNUNET_PeerIdentity *
-get_random_peer_from_peermap (const struct
- GNUNET_CONTAINER_MultiPeerMap *valid_peers)
+get_random_peer_from_peermap (struct GNUNET_CONTAINER_MultiPeerMap *valid_peers)
{
struct GetRandPeerIteratorCls *iterator_cls;
const struct GNUNET_PeerIdentity *ret;
@@ -1660,7 +1659,7 @@ valid_peer_iterator (void *cls,
* #GNUNET_SYSERR if it aborted iteration
*/
static int
-get_valid_peers (const struct GNUNET_CONTAINER_MultiPeerMap *valid_peers,
+get_valid_peers (struct GNUNET_CONTAINER_MultiPeerMap *valid_peers,
PeersIterator iterator,
void *it_cls)
{