diff options
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c index 7beeeb03d..83e809a16 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c | |||
@@ -291,15 +291,15 @@ ibf_write_slice (const struct InvertibleBloomFilter *ibf, uint32_t start, uint32 | |||
291 | 291 | ||
292 | /* copy keys */ | 292 | /* copy keys */ |
293 | key_dst = (struct IBF_Key *) buf; | 293 | key_dst = (struct IBF_Key *) buf; |
294 | memcpy (key_dst, ibf->key_sum + start, count * sizeof *key_dst); | 294 | GNUNET_memcpy (key_dst, ibf->key_sum + start, count * sizeof *key_dst); |
295 | key_dst += count; | 295 | key_dst += count; |
296 | /* copy key hashes */ | 296 | /* copy key hashes */ |
297 | key_hash_dst = (struct IBF_KeyHash *) key_dst; | 297 | key_hash_dst = (struct IBF_KeyHash *) key_dst; |
298 | memcpy (key_hash_dst, ibf->key_hash_sum + start, count * sizeof *key_hash_dst); | 298 | GNUNET_memcpy (key_hash_dst, ibf->key_hash_sum + start, count * sizeof *key_hash_dst); |
299 | key_hash_dst += count; | 299 | key_hash_dst += count; |
300 | /* copy counts */ | 300 | /* copy counts */ |
301 | count_dst = (struct IBF_Count *) key_hash_dst; | 301 | count_dst = (struct IBF_Count *) key_hash_dst; |
302 | memcpy (count_dst, ibf->count + start, count * sizeof *count_dst); | 302 | GNUNET_memcpy (count_dst, ibf->count + start, count * sizeof *count_dst); |
303 | } | 303 | } |
304 | 304 | ||
305 | 305 | ||
@@ -323,15 +323,15 @@ ibf_read_slice (const void *buf, uint32_t start, uint32_t count, struct Invertib | |||
323 | 323 | ||
324 | /* copy keys */ | 324 | /* copy keys */ |
325 | key_src = (struct IBF_Key *) buf; | 325 | key_src = (struct IBF_Key *) buf; |
326 | memcpy (ibf->key_sum + start, key_src, count * sizeof *key_src); | 326 | GNUNET_memcpy (ibf->key_sum + start, key_src, count * sizeof *key_src); |
327 | key_src += count; | 327 | key_src += count; |
328 | /* copy key hashes */ | 328 | /* copy key hashes */ |
329 | key_hash_src = (struct IBF_KeyHash *) key_src; | 329 | key_hash_src = (struct IBF_KeyHash *) key_src; |
330 | memcpy (ibf->key_hash_sum + start, key_hash_src, count * sizeof *key_hash_src); | 330 | GNUNET_memcpy (ibf->key_hash_sum + start, key_hash_src, count * sizeof *key_hash_src); |
331 | key_hash_src += count; | 331 | key_hash_src += count; |
332 | /* copy counts */ | 332 | /* copy counts */ |
333 | count_src = (struct IBF_Count *) key_hash_src; | 333 | count_src = (struct IBF_Count *) key_hash_src; |
334 | memcpy (ibf->count + start, count_src, count * sizeof *count_src); | 334 | GNUNET_memcpy (ibf->count + start, count_src, count * sizeof *count_src); |
335 | } | 335 | } |
336 | 336 | ||
337 | 337 | ||