gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit bf7f0f51764c29f82be5aeae84dd95de7a857cd3
parent 76c34b131d62f4dac8766b725251e6474b4b2b85
Author: Matthias Wachs <wachs@net.in.tum.de>
Date:   Mon, 19 Aug 2013 07:33:50 +0000

remove dead assignments


Diffstat:
Msrc/ats/gnunet-service-ats-solver_mlp.h | 3++-
Msrc/ats/gnunet-service-ats_normalization.c | 3+--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ats/gnunet-service-ats-solver_mlp.h b/src/ats/gnunet-service-ats-solver_mlp.h @@ -517,7 +517,8 @@ GAS_mlp_bulk_stop (void *solver); /** - * Get the preferred address for a specific peer + * Get the preferred address for a specific peer until + * GAS_mlp_stop_get_preferred_address is called * * @param solver the MLP Handle * @param peer the peer diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c @@ -311,7 +311,6 @@ recalculate_rel_preferences (struct PreferenceClient *c, GNUNET_ATS_print_preference_type (kind), p_cur->f_rel[kind]); - res = 0.0; if (p_cur->f_rel[kind] != backup) { /* Value changed, recalculate */ @@ -774,7 +773,7 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr for (c1 = 0; c1 < atsi_count; c1++) { current_type = ntohl (atsi[c1].type); - current_val = ntohl (atsi[c1].value); + for (c2 = 0; c2 < GNUNET_ATS_QualityPropertiesCount; c2++) { /* Check if type is valid */