diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-08 19:00:19 +0000 |
commit | fe947a9704bed14c2fc74b2f2069596fe884cbad (patch) | |
tree | 644efdaa37d692b09f8e279bfe5e8b2ebe81448b /src/util/container_bloomfilter.c | |
parent | a8b0ab037820f6a9f405be3855ce8d3ebbd4399b (diff) | |
download | gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.tar.gz gnunet-fe947a9704bed14c2fc74b2f2069596fe884cbad.zip |
better comments
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 5e69fe8ab..612bad92f 100644 --- a/src/util/container_bloomfilter.c +++ b/src/util/container_bloomfilter.c | |||
@@ -666,14 +666,14 @@ GNUNET_CONTAINER_bloomfilter_remove (struct GNUNET_CONTAINER_BloomFilter *bf, | |||
666 | * | 666 | * |
667 | * @param bf the filter | 667 | * @param bf the filter |
668 | * @param iterator an iterator over all elements stored in the BF | 668 | * @param iterator an iterator over all elements stored in the BF |
669 | * @param iterator_arg argument to the iterator function | 669 | * @param iterator_cls argument to the iterator function |
670 | * @param size the new size for the filter | 670 | * @param size the new size for the filter |
671 | * @param k the new number of GNUNET_CRYPTO_hash-function to apply per element | 671 | * @param k the new number of GNUNET_CRYPTO_hash-function to apply per element |
672 | */ | 672 | */ |
673 | void | 673 | void |
674 | GNUNET_CONTAINER_bloomfilter_resize (struct GNUNET_CONTAINER_BloomFilter *bf, | 674 | GNUNET_CONTAINER_bloomfilter_resize (struct GNUNET_CONTAINER_BloomFilter *bf, |
675 | GNUNET_HashCodeIterator iterator, | 675 | GNUNET_HashCodeIterator iterator, |
676 | void *iterator_arg, | 676 | void *iterator_cls, |
677 | size_t size, | 677 | size_t size, |
678 | unsigned int k) | 678 | unsigned int k) |
679 | { | 679 | { |
@@ -691,7 +691,7 @@ GNUNET_CONTAINER_bloomfilter_resize (struct GNUNET_CONTAINER_BloomFilter *bf, | |||
691 | memset (bf->bitArray, 0, bf->bitArraySize); | 691 | memset (bf->bitArray, 0, bf->bitArraySize); |
692 | if (bf->filename != NULL) | 692 | if (bf->filename != NULL) |
693 | makeEmptyFile (bf->fh, bf->bitArraySize * 4); | 693 | makeEmptyFile (bf->fh, bf->bitArraySize * 4); |
694 | while (GNUNET_YES == iterator (iterator_arg, &hc)) | 694 | while (GNUNET_YES == iterator (iterator_cls, &hc)) |
695 | GNUNET_CONTAINER_bloomfilter_add (bf, &hc); | 695 | GNUNET_CONTAINER_bloomfilter_add (bf, &hc); |
696 | } | 696 | } |
697 | 697 | ||