diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 14 |
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 | */ |
333 | static struct GNUNET_TIME_Relative | 333 | static struct GNUNET_TIME_Relative |
334 | get_latency (const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 334 | get_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 | */ |
359 | static void | 359 | static void |
360 | update_atsi (struct GSF_ConnectedPeer *cp, | 360 | update_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 | */ |
585 | struct GSF_ConnectedPeer * | 585 | struct GSF_ConnectedPeer * |
586 | GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer, | 586 | GSF_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 | |||
669 | GSF_handle_p2p_migration_stop_ (void *cls, | 669 | GSF_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; |