diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:03:22 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:03:22 +0100 |
commit | 633bed1b616820d351b4ed3216273138a28587f2 (patch) | |
tree | f41f6976ed21637a6342e46cbe5da29a801af2e2 /src/dht | |
parent | b5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab (diff) | |
download | gnunet-633bed1b616820d351b4ed3216273138a28587f2.tar.gz gnunet-633bed1b616820d351b4ed3216273138a28587f2.zip |
eliminate dead argument
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 3 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_routing.c | 4 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_routing.h | 6 |
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 | */ |
290 | void | 289 | void |
291 | GDS_ROUTING_process (void *cls, | 290 | GDS_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 | */ |
52 | void | 51 | void |
53 | GDS_ROUTING_process (void *cls, | 52 | GDS_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, |