aboutsummaryrefslogtreecommitdiff
path: root/src/dht
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 /src/dht
parentb5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab (diff)
eliminate dead argument
Diffstat (limited to 'src/dht')
-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 e7586ad243..1b40828307 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,
data);
}
/* forward to other peers */
- GDS_ROUTING_process (NULL,
- type,
+ GDS_ROUTING_process (type,
GNUNET_TIME_absolute_ntoh (prm->expiration_time),
&prm->key,
put_path_length,
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c
index eebeedc22d..098b6e8958 100644
--- a/src/dht/gnunet-service-dht_routing.c
+++ b/src/dht/gnunet-service-dht_routing.c
@@ -276,7 +276,6 @@ process (void *cls,
* GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching
* request recently.
*
- * @param cls NULL (why have it?)
* @param type type of the block
* @param expiration_time when does the content expire
* @param key key for the content
@@ -288,8 +287,7 @@ process (void *cls,
* @param data_size number of bytes in data
*/
void
-GDS_ROUTING_process (void *cls,
- enum GNUNET_BLOCK_Type type,
+GDS_ROUTING_process (enum GNUNET_BLOCK_Type type,
struct GNUNET_TIME_Absolute expiration_time,
const struct GNUNET_HashCode *key,
unsigned int put_path_length,
diff --git a/src/dht/gnunet-service-dht_routing.h b/src/dht/gnunet-service-dht_routing.h
index 39f877ad83..ad7958363a 100644
--- a/src/dht/gnunet-service-dht_routing.h
+++ b/src/dht/gnunet-service-dht_routing.h
@@ -35,10 +35,9 @@
* Handle a reply (route to origin). Only forwards the reply back to
* other peers waiting for it. Does not do local caching or
* forwarding to local clients. Essentially calls
- * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching
+ * #GDS_NEIGHBOURS_handle_reply() for all peers that sent us a matching
* request recently.
*
- * @param cls NULL (why have it?)
* @param type type of the block
* @param expiration_time when does the content expire
* @param key key for the content
@@ -50,8 +49,7 @@
* @param data_size number of bytes in @a data
*/
void
-GDS_ROUTING_process (void *cls,
- enum GNUNET_BLOCK_Type type,
+GDS_ROUTING_process (enum GNUNET_BLOCK_Type type,
struct GNUNET_TIME_Absolute expiration_time,
const struct GNUNET_HashCode *key,
unsigned int put_path_length,