From 113ffe7f6ccbbfec1e18cff41004c7b65242a5f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Mon, 3 Aug 2015 20:45:24 +0000 Subject: [PATCH] -renaming --- src/rps/test_rps.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index d3b41801a..146be4c2c 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -214,15 +214,10 @@ struct RPSPeer */ unsigned int num_pending_reps; - /** - * Received PeerIDs - */ - struct GNUNET_PeerIdentity *rec_ids; - /** * Number of received PeerIDs */ - unsigned int num_rec_ids; + unsigned int num_recv_ids; }; @@ -471,10 +466,10 @@ evaluate (void) "%u. peer [%s] received %u of %u expected peer_ids: %i\n", i, GNUNET_i2s (rps_peers[i].peer_id), - rps_peers[i].num_rec_ids, + rps_peers[i].num_recv_ids, rps_peers[i].num_ids_to_request, - (rps_peers[i].num_ids_to_request == rps_peers[i].num_rec_ids)); - tmp_ok &= (rps_peers[i].num_ids_to_request == rps_peers[i].num_rec_ids); + (rps_peers[i].num_ids_to_request == rps_peers[i].num_recv_ids)); + tmp_ok &= (rps_peers[i].num_ids_to_request == rps_peers[i].num_recv_ids); } return tmp_ok? 0 : 1; } @@ -721,8 +716,7 @@ default_reply_handle (void *cls, i, GNUNET_i2s (&recv_peers[i])); - /* GNUNET_array_append (rps_peer->rec_ids, rps_peer->num_rec_ids, recv_peers[i]); */ - rps_peer->num_rec_ids++; + rps_peer->num_recv_ids++; } if (0 == evaluate ()) -- 2.25.1