diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-22 09:09:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-22 09:09:47 +0000 |
commit | bdedd80eefe17fa6d0113799ee010e4f78b78b77 (patch) | |
tree | fa7c5031384bc1363aeecd8400458699ca996c75 /src/dv | |
parent | 33f4f49804f7940a8ed95b3185bed27ad406c204 (diff) | |
download | gnunet-bdedd80eefe17fa6d0113799ee010e4f78b78b77.tar.gz gnunet-bdedd80eefe17fa6d0113799ee010e4f78b78b77.zip |
fix
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index f72d814ce..d3da3bbfd 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -716,9 +716,7 @@ start_consensus (void *cls, | |||
716 | * @param atsi_count number of entries in atsi | 716 | * @param atsi_count number of entries in atsi |
717 | */ | 717 | */ |
718 | static void | 718 | static void |
719 | handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | 719 | handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer) |
720 | const struct GNUNET_ATS_Information *atsi, | ||
721 | unsigned int atsi_count) | ||
722 | { | 720 | { |
723 | struct DirectNeighbor *neighbor; | 721 | struct DirectNeighbor *neighbor; |
724 | struct Route *route; | 722 | struct Route *route; |
@@ -727,7 +725,8 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
727 | /* Check for connect to self message */ | 725 | /* Check for connect to self message */ |
728 | if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity))) | 726 | if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity))) |
729 | return; | 727 | return; |
730 | distance = get_atsi_distance (atsi, atsi_count); | 728 | fprintf (stderr, "FIX ATS DATA: %s:%u!\n", __FILE__, __LINE__); |
729 | distance = get_atsi_distance (NULL, 0); | ||
731 | neighbor = GNUNET_CONTAINER_multihashmap_get (direct_neighbors, | 730 | neighbor = GNUNET_CONTAINER_multihashmap_get (direct_neighbors, |
732 | &peer->hashPubKey); | 731 | &peer->hashPubKey); |
733 | if (NULL != neighbor) | 732 | if (NULL != neighbor) |
@@ -1169,9 +1168,7 @@ start_consensus (void *cls, | |||
1169 | */ | 1168 | */ |
1170 | static int | 1169 | static int |
1171 | handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer, | 1170 | handle_dv_route_message (void *cls, const struct GNUNET_PeerIdentity *peer, |
1172 | const struct GNUNET_MessageHeader *message, | 1171 | const struct GNUNET_MessageHeader *message) |
1173 | const struct GNUNET_ATS_Information *atsi, | ||
1174 | unsigned int atsi_count) | ||
1175 | { | 1172 | { |
1176 | const struct RouteMessage *rm; | 1173 | const struct RouteMessage *rm; |
1177 | const struct GNUNET_MessageHeader *payload; | 1174 | const struct GNUNET_MessageHeader *payload; |