diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.c')
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c index 7a2876810..24f551036 100644 --- 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, | |||
311 | GNUNET_ATS_print_preference_type (kind), | 311 | GNUNET_ATS_print_preference_type (kind), |
312 | p_cur->f_rel[kind]); | 312 | p_cur->f_rel[kind]); |
313 | 313 | ||
314 | res = 0.0; | ||
315 | if (p_cur->f_rel[kind] != backup) | 314 | if (p_cur->f_rel[kind] != backup) |
316 | { | 315 | { |
317 | /* Value changed, recalculate */ | 316 | /* Value changed, recalculate */ |
@@ -774,7 +773,7 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr | |||
774 | for (c1 = 0; c1 < atsi_count; c1++) | 773 | for (c1 = 0; c1 < atsi_count; c1++) |
775 | { | 774 | { |
776 | current_type = ntohl (atsi[c1].type); | 775 | current_type = ntohl (atsi[c1].type); |
777 | current_val = ntohl (atsi[c1].value); | 776 | |
778 | for (c2 = 0; c2 < GNUNET_ATS_QualityPropertiesCount; c2++) | 777 | for (c2 = 0; c2 < GNUNET_ATS_QualityPropertiesCount; c2++) |
779 | { | 778 | { |
780 | /* Check if type is valid */ | 779 | /* Check if type is valid */ |