aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index 3a2bdac70..0c852ec64 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -331,14 +331,14 @@ get_trust_filename (const struct GNUNET_PeerIdentity *id)
331 * @return connection latency 331 * @return connection latency
332 */ 332 */
333static struct GNUNET_TIME_Relative 333static struct GNUNET_TIME_Relative
334get_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi) 334get_latency (const struct GNUNET_ATS_Information *atsi)
335{ 335{
336 if (atsi == NULL) 336 if (atsi == NULL)
337 return GNUNET_TIME_UNIT_SECONDS; 337 return GNUNET_TIME_UNIT_SECONDS;
338 while ((ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) && 338 while ((ntohl (atsi->type) != GNUNET_ATS_ARRAY_TERMINATOR) &&
339 (ntohl (atsi->type) != GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)) 339 (ntohl (atsi->type) != GNUNET_ATS_QUALITY_NET_DELAY))
340 atsi++; 340 atsi++;
341 if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) 341 if (ntohl (atsi->type) == GNUNET_ATS_ARRAY_TERMINATOR)
342 { 342 {
343 /* We sometime have no latency data, i.e. if the address came from 343 /* We sometime have no latency data, i.e. if the address came from
344 peerinfo and we never had a chance to play transport-level 344 peerinfo and we never had a chance to play transport-level
@@ -358,7 +358,7 @@ get_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi)
358 */ 358 */
359static void 359static void
360update_atsi (struct GSF_ConnectedPeer *cp, 360update_atsi (struct GSF_ConnectedPeer *cp,
361 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 361 const struct GNUNET_ATS_Information *atsi)
362{ 362{
363 struct GNUNET_TIME_Relative latency; 363 struct GNUNET_TIME_Relative latency;
364 364
@@ -584,7 +584,7 @@ ats_reserve_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
584 */ 584 */
585struct GSF_ConnectedPeer * 585struct GSF_ConnectedPeer *
586GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer, 586GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer,
587 const struct GNUNET_TRANSPORT_ATS_Information *atsi) 587 const struct GNUNET_ATS_Information *atsi)
588{ 588{
589 struct GSF_ConnectedPeer *cp; 589 struct GSF_ConnectedPeer *cp;
590 char *fn; 590 char *fn;
@@ -669,7 +669,7 @@ int
669GSF_handle_p2p_migration_stop_ (void *cls, 669GSF_handle_p2p_migration_stop_ (void *cls,
670 const struct GNUNET_PeerIdentity *other, 670 const struct GNUNET_PeerIdentity *other,
671 const struct GNUNET_MessageHeader *message, 671 const struct GNUNET_MessageHeader *message,
672 const struct GNUNET_TRANSPORT_ATS_Information 672 const struct GNUNET_ATS_Information
673 *atsi) 673 *atsi)
674{ 674{
675 struct GSF_ConnectedPeer *cp; 675 struct GSF_ConnectedPeer *cp;