aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 16:03:22 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 16:03:22 +0100
commit633bed1b616820d351b4ed3216273138a28587f2 (patch)
treef41f6976ed21637a6342e46cbe5da29a801af2e2
parentb5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab (diff)
downloadgnunet-633bed1b616820d351b4ed3216273138a28587f2.tar.gz
gnunet-633bed1b616820d351b4ed3216273138a28587f2.zip
eliminate dead argument
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c3
-rw-r--r--src/dht/gnunet-service-dht_routing.c4
-rw-r--r--src/dht/gnunet-service-dht_routing.h6
3 files changed, 4 insertions, 9 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index e7586ad24..1b4082830 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -2380,8 +2380,7 @@ handle_dht_p2p_result (void *cls,
2380 data); 2380 data);
2381 } 2381 }
2382 /* forward to other peers */ 2382 /* forward to other peers */
2383 GDS_ROUTING_process (NULL, 2383 GDS_ROUTING_process (type,
2384 type,
2385 GNUNET_TIME_absolute_ntoh (prm->expiration_time), 2384 GNUNET_TIME_absolute_ntoh (prm->expiration_time),
2386 &prm->key, 2385 &prm->key,
2387 put_path_length, 2386 put_path_length,
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c
index eebeedc22..098b6e895 100644
--- a/src/dht/gnunet-service-dht_routing.c
+++ b/src/dht/gnunet-service-dht_routing.c
@@ -276,7 +276,6 @@ process (void *cls,
276 * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching 276 * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching
277 * request recently. 277 * request recently.
278 * 278 *
279 * @param cls NULL (why have it?)
280 * @param type type of the block 279 * @param type type of the block
281 * @param expiration_time when does the content expire 280 * @param expiration_time when does the content expire
282 * @param key key for the content 281 * @param key key for the content
@@ -288,8 +287,7 @@ process (void *cls,
288 * @param data_size number of bytes in data 287 * @param data_size number of bytes in data
289 */ 288 */
290void 289void
291GDS_ROUTING_process (void *cls, 290GDS_ROUTING_process (enum GNUNET_BLOCK_Type type,
292 enum GNUNET_BLOCK_Type type,
293 struct GNUNET_TIME_Absolute expiration_time, 291 struct GNUNET_TIME_Absolute expiration_time,
294 const struct GNUNET_HashCode *key, 292 const struct GNUNET_HashCode *key,
295 unsigned int put_path_length, 293 unsigned int put_path_length,
diff --git a/src/dht/gnunet-service-dht_routing.h b/src/dht/gnunet-service-dht_routing.h
index 39f877ad8..ad7958363 100644
--- a/src/dht/gnunet-service-dht_routing.h
+++ b/src/dht/gnunet-service-dht_routing.h
@@ -35,10 +35,9 @@
35 * Handle a reply (route to origin). Only forwards the reply back to 35 * Handle a reply (route to origin). Only forwards the reply back to
36 * other peers waiting for it. Does not do local caching or 36 * other peers waiting for it. Does not do local caching or
37 * forwarding to local clients. Essentially calls 37 * forwarding to local clients. Essentially calls
38 * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching 38 * #GDS_NEIGHBOURS_handle_reply() for all peers that sent us a matching
39 * request recently. 39 * request recently.
40 * 40 *
41 * @param cls NULL (why have it?)
42 * @param type type of the block 41 * @param type type of the block
43 * @param expiration_time when does the content expire 42 * @param expiration_time when does the content expire
44 * @param key key for the content 43 * @param key key for the content
@@ -50,8 +49,7 @@
50 * @param data_size number of bytes in @a data 49 * @param data_size number of bytes in @a data
51 */ 50 */
52void 51void
53GDS_ROUTING_process (void *cls, 52GDS_ROUTING_process (enum GNUNET_BLOCK_Type type,
54 enum GNUNET_BLOCK_Type type,
55 struct GNUNET_TIME_Absolute expiration_time, 53 struct GNUNET_TIME_Absolute expiration_time,
56 const struct GNUNET_HashCode *key, 54 const struct GNUNET_HashCode *key,
57 unsigned int put_path_length, 55 unsigned int put_path_length,