diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-19 07:33:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-19 07:33:50 +0000 |
commit | bf7f0f51764c29f82be5aeae84dd95de7a857cd3 (patch) | |
tree | 9f201d96178f3afec2b8d12492bfac46896c2194 /src | |
parent | 76c34b131d62f4dac8766b725251e6474b4b2b85 (diff) | |
download | gnunet-bf7f0f51764c29f82be5aeae84dd95de7a857cd3.tar.gz gnunet-bf7f0f51764c29f82be5aeae84dd95de7a857cd3.zip |
remove dead assignments
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/gnunet-service-ats-solver_mlp.h | 3 | ||||
-rw-r--r-- | src/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 index 4a5d35b00..d18c643c6 100644 --- 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); | |||
517 | 517 | ||
518 | 518 | ||
519 | /** | 519 | /** |
520 | * Get the preferred address for a specific peer | 520 | * Get the preferred address for a specific peer until |
521 | * GAS_mlp_stop_get_preferred_address is called | ||
521 | * | 522 | * |
522 | * @param solver the MLP Handle | 523 | * @param solver the MLP Handle |
523 | * @param peer the peer | 524 | * @param peer the peer |
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 */ |