aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/gnunet-consensus-ibf.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-03-07 14:12:11 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-03-07 14:12:11 +0000
commit159e38f1ed94c6b44ca20bc2a78fd5cad7027fd0 (patch)
treee4e60aec526c9a0ffbe3dd69896d394587e8586a /src/consensus/gnunet-consensus-ibf.c
parent1a17d075effa5fbc3b3521ab0d15b2d035599969 (diff)
downloadgnunet-159e38f1ed94c6b44ca20bc2a78fd5cad7027fd0.tar.gz
gnunet-159e38f1ed94c6b44ca20bc2a78fd5cad7027fd0.zip
consensus now implemented with primitive conclusion group selection
Diffstat (limited to 'src/consensus/gnunet-consensus-ibf.c')
-rw-r--r--src/consensus/gnunet-consensus-ibf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/consensus/gnunet-consensus-ibf.c b/src/consensus/gnunet-consensus-ibf.c
index a16ca3247..f4a233ece 100644
--- a/src/consensus/gnunet-consensus-ibf.c
+++ b/src/consensus/gnunet-consensus-ibf.c
@@ -56,7 +56,7 @@ static void
56register_hashcode (struct GNUNET_HashCode *hash) 56register_hashcode (struct GNUNET_HashCode *hash)
57{ 57{
58 struct GNUNET_HashCode replicated; 58 struct GNUNET_HashCode replicated;
59 uint64_t key; 59 struct IBF_Key key;
60 key = ibf_key_from_hashcode (hash); 60 key = ibf_key_from_hashcode (hash);
61 ibf_hashcode_from_key (key, &replicated); 61 ibf_hashcode_from_key (key, &replicated);
62 GNUNET_CONTAINER_multihashmap_put (key_to_hashcode, &replicated, GNUNET_memdup (hash, sizeof *hash), 62 GNUNET_CONTAINER_multihashmap_put (key_to_hashcode, &replicated, GNUNET_memdup (hash, sizeof *hash),
@@ -64,7 +64,7 @@ register_hashcode (struct GNUNET_HashCode *hash)
64} 64}
65 65
66static void 66static void
67iter_hashcodes (uint64_t key, GNUNET_CONTAINER_HashMapIterator iter, void *cls) 67iter_hashcodes (struct IBF_Key key, GNUNET_CONTAINER_HashMapIterator iter, void *cls)
68{ 68{
69 struct GNUNET_HashCode replicated; 69 struct GNUNET_HashCode replicated;
70 ibf_hashcode_from_key (key, &replicated); 70 ibf_hashcode_from_key (key, &replicated);
@@ -100,7 +100,7 @@ run (void *cls, char *const *args, const char *cfgfile,
100 const struct GNUNET_CONFIGURATION_Handle *cfg) 100 const struct GNUNET_CONFIGURATION_Handle *cfg)
101{ 101{
102 struct GNUNET_HashCode id; 102 struct GNUNET_HashCode id;
103 uint64_t ibf_key; 103 struct IBF_Key ibf_key;
104 int i; 104 int i;
105 int side; 105 int side;
106 int res; 106 int res;