diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
commit | fa2978883e1585b1eeff3a22b7a9b4f174a45ca3 (patch) | |
tree | 52800dd5062534729be80227608def6f6c0c45ac /src/rps/test_rps.c | |
parent | 2bb2faa207e4015609100a1aca38af344c65596f (diff) | |
download | gnunet-fa2978883e1585b1eeff3a22b7a9b4f174a45ca3.tar.gz gnunet-fa2978883e1585b1eeff3a22b7a9b4f174a45ca3.zip |
get rid of plain memcpy calls
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r-- | src/rps/test_rps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 8d31bf50d..b433a51d4 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c | |||
@@ -1836,7 +1836,7 @@ static uint32_t binom (uint32_t n, uint32_t k) | |||
1836 | * @param a | 1836 | * @param a |
1837 | * @param b | 1837 | * @param b |
1838 | * | 1838 | * |
1839 | * @return | 1839 | * @return |
1840 | */ | 1840 | */ |
1841 | static int is_in_view (uint32_t a, uint32_t b) | 1841 | static int is_in_view (uint32_t a, uint32_t b) |
1842 | { | 1842 | { |
@@ -2172,9 +2172,9 @@ void view_update_cb (void *cls, | |||
2172 | rps_peer->cur_view_count, | 2172 | rps_peer->cur_view_count, |
2173 | view_size); | 2173 | view_size); |
2174 | //*rps_peer->cur_view = *peers; | 2174 | //*rps_peer->cur_view = *peers; |
2175 | memcpy (rps_peer->cur_view, | 2175 | GNUNET_memcpy (rps_peer->cur_view, |
2176 | peers, | 2176 | peers, |
2177 | view_size * sizeof (struct GNUNET_PeerIdentity)); | 2177 | view_size * sizeof (struct GNUNET_PeerIdentity)); |
2178 | to_file ("/tmp/rps/count_in_views.txt", | 2178 | to_file ("/tmp/rps/count_in_views.txt", |
2179 | "%" PRIu64 " %" PRIu32 "", | 2179 | "%" PRIu64 " %" PRIu32 "", |
2180 | rps_peer->index, | 2180 | rps_peer->index, |