summaryrefslogtreecommitdiff
path: root/src/rps/test_rps.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2016-09-15 00:58:39 +0000
committerJulius Bünger <buenger@mytum.de>2016-09-15 00:58:39 +0000
commitc46a23c5148d7cb40ba9a7fb3bd3b5bf4229c990 (patch)
treebb65a93c192c2adfa6ebb2f36b213f077c0feac8 /src/rps/test_rps.c
parent2044581ae12e569b1cfc572568ededf649120379 (diff)
downloadgnunet-c46a23c5148d7cb40ba9a7fb3bd3b5bf4229c990.tar.gz
gnunet-c46a23c5148d7cb40ba9a7fb3bd3b5bf4229c990.zip
-rps: check return values
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r--src/rps/test_rps.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index a107aa042..1ce174454 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -593,10 +593,11 @@ info_cb (void *cb_cls,
593 rps_peer_ids[entry->index] = *(pinfo->result.id); 593 rps_peer_ids[entry->index] = *(pinfo->result.id);
594 rps_peers[entry->index].peer_id = &rps_peer_ids[entry->index]; 594 rps_peers[entry->index].peer_id = &rps_peer_ids[entry->index];
595 595
596 GNUNET_CONTAINER_multipeermap_put (peer_map, 596 GNUNET_assert (GNUNET_OK ==
597 &rps_peer_ids[entry->index], 597 GNUNET_CONTAINER_multipeermap_put (peer_map,
598 &rps_peers[entry->index], 598 &rps_peer_ids[entry->index],
599 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY); 599 &rps_peers[entry->index],
600 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
600 tofile ("/tmp/rps/peer_ids", 601 tofile ("/tmp/rps/peer_ids",
601 "%u\t%s\n", 602 "%u\t%s\n",
602 entry->index, 603 entry->index,