diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index 3cbd80452..35229c59d 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c | |||
@@ -1181,7 +1181,6 @@ struct IterationContext | |||
1181 | * Output information of validation entries to the given client. | 1181 | * Output information of validation entries to the given client. |
1182 | * | 1182 | * |
1183 | * @param cls the `struct IterationContext *` | 1183 | * @param cls the `struct IterationContext *` |
1184 | * @param peer identity of the neighbour | ||
1185 | * @param address the address | 1184 | * @param address the address |
1186 | * @param last_validation point in time when last validation was performed | 1185 | * @param last_validation point in time when last validation was performed |
1187 | * @param valid_until point in time how long address is valid | 1186 | * @param valid_until point in time how long address is valid |
@@ -1190,7 +1189,6 @@ struct IterationContext | |||
1190 | */ | 1189 | */ |
1191 | static void | 1190 | static void |
1192 | send_validation_information (void *cls, | 1191 | send_validation_information (void *cls, |
1193 | const struct GNUNET_PeerIdentity *peer, | ||
1194 | const struct GNUNET_HELLO_Address *address, | 1192 | const struct GNUNET_HELLO_Address *address, |
1195 | struct GNUNET_TIME_Absolute last_validation, | 1193 | struct GNUNET_TIME_Absolute last_validation, |
1196 | struct GNUNET_TIME_Absolute valid_until, | 1194 | struct GNUNET_TIME_Absolute valid_until, |
@@ -1201,13 +1199,13 @@ send_validation_information (void *cls, | |||
1201 | struct ValidationIterateResponseMessage *msg; | 1199 | struct ValidationIterateResponseMessage *msg; |
1202 | 1200 | ||
1203 | if ( (GNUNET_YES != pc->all) && | 1201 | if ( (GNUNET_YES != pc->all) && |
1204 | (0 != memcmp (peer, &pc->id, sizeof (pc->id))) ) | 1202 | (0 != memcmp (&address->peer, &pc->id, sizeof (pc->id))) ) |
1205 | return; | 1203 | return; |
1206 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1204 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1207 | "Sending information about for validation entry for peer `%s' using address `%s'\n", | 1205 | "Sending information about for validation entry for peer `%s' using address `%s'\n", |
1208 | GNUNET_i2s(peer), | 1206 | GNUNET_i2s (&address->peer), |
1209 | (NULL != address) ? GST_plugins_a2s (address) : "<none>"); | 1207 | (NULL != address) ? GST_plugins_a2s (address) : "<none>"); |
1210 | msg = compose_validation_iterate_response_message (peer, address); | 1208 | msg = compose_validation_iterate_response_message (&address->peer, address); |
1211 | msg->last_validation = GNUNET_TIME_absolute_hton(last_validation); | 1209 | msg->last_validation = GNUNET_TIME_absolute_hton(last_validation); |
1212 | msg->valid_until = GNUNET_TIME_absolute_hton(valid_until); | 1210 | msg->valid_until = GNUNET_TIME_absolute_hton(valid_until); |
1213 | msg->next_validation = GNUNET_TIME_absolute_hton(next_validation); | 1211 | msg->next_validation = GNUNET_TIME_absolute_hton(next_validation); |