aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_container_bloomfilter.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-12 19:07:40 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-12 19:07:40 +0000
commit6c471eeb15e27f8226492b4860a3c2acb94c5f25 (patch)
treea3a9dcba12ee5356c03056c10b7aba5367b2ef34 /src/util/test_container_bloomfilter.c
parent16bcbbea7133fd2265d46bd2ae1dc70e8c9ba96f (diff)
downloadgnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.tar.gz
gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.zip
-consistently use struct GNUNET_HashCode
Diffstat (limited to 'src/util/test_container_bloomfilter.c')
-rw-r--r--src/util/test_container_bloomfilter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/test_container_bloomfilter.c b/src/util/test_container_bloomfilter.c
index f881bb367..f9743bdca 100644
--- a/src/util/test_container_bloomfilter.c
+++ b/src/util/test_container_bloomfilter.c
@@ -36,16 +36,16 @@
36 * Generate a random hashcode. 36 * Generate a random hashcode.
37 */ 37 */
38static void 38static void
39nextHC (GNUNET_HashCode * hc) 39nextHC (struct GNUNET_HashCode * hc)
40{ 40{
41 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, hc); 41 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, hc);
42} 42}
43 43
44static int 44static int
45add_iterator (void *cls, GNUNET_HashCode * next) 45add_iterator (void *cls, struct GNUNET_HashCode * next)
46{ 46{
47 int *ret = cls; 47 int *ret = cls;
48 GNUNET_HashCode pos; 48 struct GNUNET_HashCode pos;
49 49
50 if (0 == (*ret)--) 50 if (0 == (*ret)--)
51 return GNUNET_NO; 51 return GNUNET_NO;
@@ -59,7 +59,7 @@ main (int argc, char *argv[])
59{ 59{
60 struct GNUNET_CONTAINER_BloomFilter *bf; 60 struct GNUNET_CONTAINER_BloomFilter *bf;
61 struct GNUNET_CONTAINER_BloomFilter *bfi; 61 struct GNUNET_CONTAINER_BloomFilter *bfi;
62 GNUNET_HashCode tmp; 62 struct GNUNET_HashCode tmp;
63 int i; 63 int i;
64 int ok1; 64 int ok1;
65 int ok2; 65 int ok2;