aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_routing.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/dht/gnunet-service-dht_routing.c
parent16bcbbea7133fd2265d46bd2ae1dc70e8c9ba96f (diff)
downloadgnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.tar.gz
gnunet-6c471eeb15e27f8226492b4860a3c2acb94c5f25.zip
-consistently use struct GNUNET_HashCode
Diffstat (limited to 'src/dht/gnunet-service-dht_routing.c')
-rw-r--r--src/dht/gnunet-service-dht_routing.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c
index 013d8562f..c1dca4e21 100644
--- a/src/dht/gnunet-service-dht_routing.c
+++ b/src/dht/gnunet-service-dht_routing.c
@@ -50,7 +50,7 @@ struct RecentRequest
50 /** 50 /**
51 * Key of this request. 51 * Key of this request.
52 */ 52 */
53 GNUNET_HashCode key; 53 struct GNUNET_HashCode key;
54 54
55 /** 55 /**
56 * Position of this node in the min heap. 56 * Position of this node in the min heap.
@@ -160,15 +160,15 @@ struct ProcessContext
160 * GNUNET_SYSERR if the result is malformed or type unsupported 160 * GNUNET_SYSERR if the result is malformed or type unsupported
161 */ 161 */
162static int 162static int
163process (void *cls, const GNUNET_HashCode * key, void *value) 163process (void *cls, const struct GNUNET_HashCode * key, void *value)
164{ 164{
165 struct ProcessContext *pc = cls; 165 struct ProcessContext *pc = cls;
166 struct RecentRequest *rr = value; 166 struct RecentRequest *rr = value;
167 enum GNUNET_BLOCK_EvaluationResult eval; 167 enum GNUNET_BLOCK_EvaluationResult eval;
168 unsigned int gpl; 168 unsigned int gpl;
169 unsigned int ppl; 169 unsigned int ppl;
170 GNUNET_HashCode hc; 170 struct GNUNET_HashCode hc;
171 const GNUNET_HashCode *eval_key; 171 const struct GNUNET_HashCode *eval_key;
172 172
173 if ((rr->type != GNUNET_BLOCK_TYPE_ANY) && (rr->type != pc->type)) 173 if ((rr->type != GNUNET_BLOCK_TYPE_ANY) && (rr->type != pc->type))
174 return GNUNET_OK; /* type missmatch */ 174 return GNUNET_OK; /* type missmatch */
@@ -266,7 +266,7 @@ process (void *cls, const GNUNET_HashCode * key, void *value)
266void 266void
267GDS_ROUTING_process (enum GNUNET_BLOCK_Type type, 267GDS_ROUTING_process (enum GNUNET_BLOCK_Type type,
268 struct GNUNET_TIME_Absolute expiration_time, 268 struct GNUNET_TIME_Absolute expiration_time,
269 const GNUNET_HashCode * key, unsigned int put_path_length, 269 const struct GNUNET_HashCode * key, unsigned int put_path_length,
270 const struct GNUNET_PeerIdentity *put_path, 270 const struct GNUNET_PeerIdentity *put_path,
271 unsigned int get_path_length, 271 unsigned int get_path_length,
272 const struct GNUNET_PeerIdentity *get_path, 272 const struct GNUNET_PeerIdentity *get_path,
@@ -339,7 +339,7 @@ void
339GDS_ROUTING_add (const struct GNUNET_PeerIdentity *sender, 339GDS_ROUTING_add (const struct GNUNET_PeerIdentity *sender,
340 enum GNUNET_BLOCK_Type type, 340 enum GNUNET_BLOCK_Type type,
341 enum GNUNET_DHT_RouteOption options, 341 enum GNUNET_DHT_RouteOption options,
342 const GNUNET_HashCode * key, const void *xquery, 342 const struct GNUNET_HashCode * key, const void *xquery,
343 size_t xquery_size, 343 size_t xquery_size,
344 const struct GNUNET_CONTAINER_BloomFilter *reply_bf, 344 const struct GNUNET_CONTAINER_BloomFilter *reply_bf,
345 uint32_t reply_bf_mutator) 345 uint32_t reply_bf_mutator)