diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-07 13:59:44 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-07 13:59:44 +0000 |
commit | 024e6bf3258498b7ed2c7bd005ce6d1f97d67ac1 (patch) | |
tree | 0a954e291f465dc80d07a3ae4298c07f90d0a402 /src/ats/gnunet-service-ats-solver_proportional.c | |
parent | 298248cb1abfc18b6102d3381f62c946c4e93233 (diff) | |
download | gnunet-024e6bf3258498b7ed2c7bd005ce6d1f97d67ac1.tar.gz gnunet-024e6bf3258498b7ed2c7bd005ce6d1f97d67ac1.zip |
rename
Diffstat (limited to 'src/ats/gnunet-service-ats-solver_proportional.c')
-rw-r--r-- | src/ats/gnunet-service-ats-solver_proportional.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ats/gnunet-service-ats-solver_proportional.c b/src/ats/gnunet-service-ats-solver_proportional.c index f48390f2e..8ddca1b27 100644 --- a/src/ats/gnunet-service-ats-solver_proportional.c +++ b/src/ats/gnunet-service-ats-solver_proportional.c | |||
@@ -1344,6 +1344,8 @@ GAS_proportional_address_update (void *solver, | |||
1344 | uint32_t addr_net; | 1344 | uint32_t addr_net; |
1345 | int save_active = GNUNET_NO; | 1345 | int save_active = GNUNET_NO; |
1346 | struct Network *new_net = NULL; | 1346 | struct Network *new_net = NULL; |
1347 | |||
1348 | /* Check updates to performance information */ | ||
1347 | for (i = 0; i < prev_atsi_count; i++) | 1349 | for (i = 0; i < prev_atsi_count; i++) |
1348 | { | 1350 | { |
1349 | prev_type = ntohl (prev_ats[i].type); | 1351 | prev_type = ntohl (prev_ats[i].type); |
@@ -1461,15 +1463,9 @@ GAS_proportional_address_add (void *solver, | |||
1461 | struct GAS_PROPORTIONAL_Handle *s = solver; | 1463 | struct GAS_PROPORTIONAL_Handle *s = solver; |
1462 | struct Network *net = NULL; | 1464 | struct Network *net = NULL; |
1463 | struct AddressWrapper *aw = NULL; | 1465 | struct AddressWrapper *aw = NULL; |
1464 | int c; | ||
1465 | |||
1466 | GNUNET_assert (NULL != s); | 1466 | GNUNET_assert (NULL != s); |
1467 | for (c = 0; c < s->networks; c++) | 1467 | |
1468 | { | 1468 | net = get_network (s, network); |
1469 | net = &s->network_entries[c]; | ||
1470 | if (network == net->type) | ||
1471 | break; | ||
1472 | } | ||
1473 | if (NULL == net) | 1469 | if (NULL == net) |
1474 | { | 1470 | { |
1475 | GNUNET_break (0); | 1471 | GNUNET_break (0); |