diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-31 13:25:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-31 13:25:56 +0000 |
commit | 417153f60dbac6d5e626978136dc9ea429598a0d (patch) | |
tree | 8b99218070f798fa3ea138f14affd53a9d7163a9 /src/util/container_bloomfilter.c | |
parent | fc5d2d0574fb25d55ded1c4df046758916e7f5ab (diff) | |
download | gnunet-417153f60dbac6d5e626978136dc9ea429598a0d.tar.gz gnunet-417153f60dbac6d5e626978136dc9ea429598a0d.zip |
spaces
Diffstat (limited to 'src/util/container_bloomfilter.c')
-rw-r--r-- | src/util/container_bloomfilter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index ae1336f88..53eaf31d1 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c | |||
@@ -319,7 +319,7 @@ makeEmptyFile (const struct GNUNET_DISK_FileHandle *fh, size_t size) | |||
319 | * @param bit the current bit | 319 | * @param bit the current bit |
320 | */ | 320 | */ |
321 | typedef void (*BitIterator) (void *cls, | 321 | typedef void (*BitIterator) (void *cls, |
322 | const struct GNUNET_CONTAINER_BloomFilter * bf, | 322 | const struct GNUNET_CONTAINER_BloomFilter *bf, |
323 | unsigned int bit); | 323 | unsigned int bit); |
324 | 324 | ||
325 | /** | 325 | /** |
@@ -333,7 +333,7 @@ typedef void (*BitIterator) (void *cls, | |||
333 | */ | 333 | */ |
334 | static void | 334 | static void |
335 | iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, | 335 | iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, |
336 | BitIterator callback, void *arg, const GNUNET_HashCode * key) | 336 | BitIterator callback, void *arg, const GNUNET_HashCode *key) |
337 | { | 337 | { |
338 | GNUNET_HashCode tmp[2]; | 338 | GNUNET_HashCode tmp[2]; |
339 | int bitCount; | 339 | int bitCount; |
@@ -349,7 +349,7 @@ iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, | |||
349 | { | 349 | { |
350 | callback (arg, | 350 | callback (arg, |
351 | bf, | 351 | bf, |
352 | (((uint32_t *) & tmp[round & 1])[slot]) & | 352 | (((uint32_t *) &tmp[round & 1])[slot]) & |
353 | ((bf->bitArraySize * 8) - 1)); | 353 | ((bf->bitArraySize * 8) - 1)); |
354 | slot++; | 354 | slot++; |
355 | bitCount--; | 355 | bitCount--; |