diff options
author | Julius Bünger <buenger@mytum.de> | 2016-09-15 00:58:39 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2016-09-15 00:58:39 +0000 |
commit | c46a23c5148d7cb40ba9a7fb3bd3b5bf4229c990 (patch) | |
tree | bb65a93c192c2adfa6ebb2f36b213f077c0feac8 /src/rps/test_rps.c | |
parent | 2044581ae12e569b1cfc572568ededf649120379 (diff) | |
download | gnunet-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.c | 9 |
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, |