diff options
Diffstat (limited to 'src/dht/gnunet-service-xdht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-xdht_neighbours.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c index 96fdaa9d7..c6de94a5a 100644 --- a/src/dht/gnunet-service-xdht_neighbours.c +++ b/src/dht/gnunet-service-xdht_neighbours.c | |||
@@ -2674,11 +2674,9 @@ compute_finger_identity_value (unsigned int finger_index) | |||
2674 | * finger identity through this random friend. | 2674 | * finger identity through this random friend. |
2675 | * | 2675 | * |
2676 | * @param cls closure for this task | 2676 | * @param cls closure for this task |
2677 | * @param tc the context under which the task is running | ||
2678 | */ | 2677 | */ |
2679 | static void | 2678 | static void |
2680 | send_find_finger_trail_message (void *cls, | 2679 | send_find_finger_trail_message (void *cls) |
2681 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
2682 | { | 2680 | { |
2683 | struct FriendInfo *target_friend; | 2681 | struct FriendInfo *target_friend; |
2684 | struct GNUNET_HashCode trail_id; | 2682 | struct GNUNET_HashCode trail_id; |
@@ -3219,12 +3217,11 @@ add_new_finger (struct GNUNET_PeerIdentity finger_identity, | |||
3219 | * Periodic task to verify current successor. There can be multiple trails to reach | 3217 | * Periodic task to verify current successor. There can be multiple trails to reach |
3220 | * to successor, choose the shortest one and send verify successor message | 3218 | * to successor, choose the shortest one and send verify successor message |
3221 | * across that trail. | 3219 | * across that trail. |
3220 | * | ||
3222 | * @param cls closure for this task | 3221 | * @param cls closure for this task |
3223 | * @param tc the context under which the task is running | ||
3224 | */ | 3222 | */ |
3225 | static void | 3223 | static void |
3226 | send_verify_successor_message (void *cls, | 3224 | send_verify_successor_message (void *cls) |
3227 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
3228 | { | 3225 | { |
3229 | struct FriendInfo *target_friend; | 3226 | struct FriendInfo *target_friend; |
3230 | struct GNUNET_HashCode trail_id; | 3227 | struct GNUNET_HashCode trail_id; |
@@ -5077,10 +5074,10 @@ struct SendNotifyContext | |||
5077 | unsigned int num_retries_scheduled; | 5074 | unsigned int num_retries_scheduled; |
5078 | }; | 5075 | }; |
5079 | 5076 | ||
5077 | |||
5080 | void | 5078 | void |
5081 | send_notify_new_successor (void *cls, | 5079 | send_notify_new_successor (void *cls); |
5082 | const struct GNUNET_SCHEDULER_TaskContext | 5080 | |
5083 | * tc); | ||
5084 | 5081 | ||
5085 | /** | 5082 | /** |
5086 | * Check if the peer which sent us verify successor result message is still ours | 5083 | * Check if the peer which sent us verify successor result message is still ours |
@@ -5250,11 +5247,9 @@ compare_and_update_successor (struct GNUNET_PeerIdentity curr_succ, | |||
5250 | 5247 | ||
5251 | 5248 | ||
5252 | void | 5249 | void |
5253 | send_notify_new_successor (void *cls, | 5250 | send_notify_new_successor (void *cls) |
5254 | const struct GNUNET_SCHEDULER_TaskContext | ||
5255 | * tc) | ||
5256 | { | 5251 | { |
5257 | struct SendNotifyContext *ctx = (struct SendNotifyContext *) cls; | 5252 | struct SendNotifyContext *ctx = cls; |
5258 | 5253 | ||
5259 | GDS_NEIGHBOURS_send_notify_new_successor (ctx->source_peer, | 5254 | GDS_NEIGHBOURS_send_notify_new_successor (ctx->source_peer, |
5260 | ctx->successor, | 5255 | ctx->successor, |