diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-30 18:58:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-30 18:58:43 +0000 |
commit | 5ce71ebb74e0e819d6a4d612314cc5942c24cdac (patch) | |
tree | 74df26d94532eebda5eca3443d0bb174d0162668 /src/util | |
parent | b30311c9144c094659e984bc304432671262591b (diff) | |
download | gnunet-5ce71ebb74e0e819d6a4d612314cc5942c24cdac.tar.gz gnunet-5ce71ebb74e0e819d6a4d612314cc5942c24cdac.zip |
adding empty lines
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/container_bloomfilter.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/util/container_bloomfilter.c b/src/util/container_bloomfilter.c index 7176bb1e3..b7be764b5 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c | |||
@@ -322,6 +322,7 @@ typedef int (*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 | /** | 326 | /** |
326 | * Call an iterator for each bit that the bloomfilter | 327 | * Call an iterator for each bit that the bloomfilter |
327 | * must test or set for this element. | 328 | * must test or set for this element. |
@@ -367,6 +368,7 @@ iterateBits (const struct GNUNET_CONTAINER_BloomFilter *bf, | |||
367 | } | 368 | } |
368 | } | 369 | } |
369 | 370 | ||
371 | |||
370 | /** | 372 | /** |
371 | * Callback: increment bit | 373 | * Callback: increment bit |
372 | * | 374 | * |
@@ -385,6 +387,7 @@ incrementBitCallback (void *cls, const struct GNUNET_CONTAINER_BloomFilter *bf, | |||
385 | return GNUNET_YES; | 387 | return GNUNET_YES; |
386 | } | 388 | } |
387 | 389 | ||
390 | |||
388 | /** | 391 | /** |
389 | * Callback: decrement bit | 392 | * Callback: decrement bit |
390 | * | 393 | * |
@@ -403,6 +406,7 @@ decrementBitCallback (void *cls, const struct GNUNET_CONTAINER_BloomFilter *bf, | |||
403 | return GNUNET_YES; | 406 | return GNUNET_YES; |
404 | } | 407 | } |
405 | 408 | ||
409 | |||
406 | /** | 410 | /** |
407 | * Callback: test if all bits are set | 411 | * Callback: test if all bits are set |
408 | * | 412 | * |
@@ -587,6 +591,7 @@ GNUNET_CONTAINER_bloomfilter_get_raw_data (const struct | |||
587 | return GNUNET_OK; | 591 | return GNUNET_OK; |
588 | } | 592 | } |
589 | 593 | ||
594 | |||
590 | /** | 595 | /** |
591 | * Free the space associated with a filter | 596 | * Free the space associated with a filter |
592 | * in memory, flush to drive if needed (do not | 597 | * in memory, flush to drive if needed (do not |
@@ -606,6 +611,7 @@ GNUNET_CONTAINER_bloomfilter_free (struct GNUNET_CONTAINER_BloomFilter *bf) | |||
606 | GNUNET_free (bf); | 611 | GNUNET_free (bf); |
607 | } | 612 | } |
608 | 613 | ||
614 | |||
609 | /** | 615 | /** |
610 | * Reset a bloom filter to empty. Clears the file on disk. | 616 | * Reset a bloom filter to empty. Clears the file on disk. |
611 | * | 617 | * |
@@ -643,6 +649,7 @@ GNUNET_CONTAINER_bloomfilter_test (const struct GNUNET_CONTAINER_BloomFilter | |||
643 | return res; | 649 | return res; |
644 | } | 650 | } |
645 | 651 | ||
652 | |||
646 | /** | 653 | /** |
647 | * Add an element to the filter | 654 | * Add an element to the filter |
648 | * | 655 | * |
@@ -653,7 +660,6 @@ void | |||
653 | GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf, | 660 | GNUNET_CONTAINER_bloomfilter_add (struct GNUNET_CONTAINER_BloomFilter *bf, |
654 | const GNUNET_HashCode * e) | 661 | const GNUNET_HashCode * e) |
655 | { | 662 | { |
656 | |||
657 | if (NULL == bf) | 663 | if (NULL == bf) |
658 | return; | 664 | return; |
659 | iterateBits (bf, &incrementBitCallback, bf, e); | 665 | iterateBits (bf, &incrementBitCallback, bf, e); |