diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-14 09:45:02 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-14 09:45:02 +0000 |
commit | 5a8b58263b47eb9e5d82f47aad6931f24158a815 (patch) | |
tree | 49347480c9f8002cf74411443baf7ed9b915110c /src/ats/gnunet-service-ats-solver_proportional.c | |
parent | d08fb553ced7b11351c4837bb02f0e43a11d57ab (diff) | |
download | gnunet-5a8b58263b47eb9e5d82f47aad6931f24158a815.tar.gz gnunet-5a8b58263b47eb9e5d82f47aad6931f24158a815.zip |
rename
Diffstat (limited to 'src/ats/gnunet-service-ats-solver_proportional.c')
-rw-r--r-- | src/ats/gnunet-service-ats-solver_proportional.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats-solver_proportional.c b/src/ats/gnunet-service-ats-solver_proportional.c index 9eac459ff..c362149d6 100644 --- a/src/ats/gnunet-service-ats-solver_proportional.c +++ b/src/ats/gnunet-service-ats-solver_proportional.c | |||
@@ -617,7 +617,7 @@ get_performance_info (struct ATS_Address *address, uint32_t type); | |||
617 | * @return GNUNET_OK (continue to iterate) | 617 | * @return GNUNET_OK (continue to iterate) |
618 | */ | 618 | */ |
619 | static int | 619 | static int |
620 | find_address_it (void *cls, const struct GNUNET_HashCode * key, void *value) | 620 | find_best_address_it (void *cls, const struct GNUNET_HashCode * key, void *value) |
621 | { | 621 | { |
622 | struct ATS_Address **previous_p = cls; | 622 | struct ATS_Address **previous_p = cls; |
623 | struct ATS_Address *current = (struct ATS_Address *) value; | 623 | struct ATS_Address *current = (struct ATS_Address *) value; |
@@ -1235,7 +1235,7 @@ GAS_proportional_get_preferred_address (void *solver, | |||
1235 | cur = NULL; | 1235 | cur = NULL; |
1236 | /* Get address with: stick to current address, lower distance, lower latency */ | 1236 | /* Get address with: stick to current address, lower distance, lower latency */ |
1237 | GNUNET_CONTAINER_multihashmap_get_multiple (addresses, &peer->hashPubKey, | 1237 | GNUNET_CONTAINER_multihashmap_get_multiple (addresses, &peer->hashPubKey, |
1238 | &find_address_it, &cur); | 1238 | &find_best_address_it, &cur); |
1239 | if (NULL == cur) | 1239 | if (NULL == cur) |
1240 | { | 1240 | { |
1241 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Cannot suggest address for peer `%s'\n", GNUNET_i2s (peer)); | 1241 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Cannot suggest address for peer `%s'\n", GNUNET_i2s (peer)); |