aboutsummaryrefslogtreecommitdiff
path: root/src/rps/test_rps.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-04-09 00:17:57 +0200
committerJulius Bünger <buenger@mytum.de>2018-04-09 00:17:57 +0200
commitdb67f7e2f62e38ee9b7cf5526609431a04f9bc9d (patch)
treea9fe34794f36c41ed168e42e181371c70638686b /src/rps/test_rps.c
parentddd6bbe592939c66cf0bbe0f0591d86ab56946be (diff)
downloadgnunet-db67f7e2f62e38ee9b7cf5526609431a04f9bc9d.tar.gz
gnunet-db67f7e2f62e38ee9b7cf5526609431a04f9bc9d.zip
rps test: be more flexible in printing
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r--src/rps/test_rps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index b4c5e6cb1..b46fc0c1e 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -2017,7 +2017,9 @@ static void compute_probabilities (uint32_t peer_idx)
2017 GNUNET_assert (0 <= tmp); 2017 GNUNET_assert (0 <= tmp);
2018 } 2018 }
2019 2019
2020 to_file (rps_peers[peer_idx].file_name_probs, probs_as_str); 2020 to_file_w_len (rps_peers[peer_idx].file_name_probs,
2021 probs_as_str_size,
2022 probs_as_str);
2021 GNUNET_free (probs_as_str); 2023 GNUNET_free (probs_as_str);
2022} 2024}
2023 2025