diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-06 09:28:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-06 09:28:57 +0000 |
commit | 66d788dbe9224b7d3e51ad60d2a29a167b2e348d (patch) | |
tree | dd1737e137f070c01ef42800c4fe625f526d0214 /src/ats/perf_ats_solver.c | |
parent | 170d5baeece2def099112c6a25287a95d2b28899 (diff) | |
download | gnunet-66d788dbe9224b7d3e51ad60d2a29a167b2e348d.tar.gz gnunet-66d788dbe9224b7d3e51ad60d2a29a167b2e348d.zip |
get rid of stupid network[i]=i array
Diffstat (limited to 'src/ats/perf_ats_solver.c')
-rw-r--r-- | src/ats/perf_ats_solver.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c index d81b5779b..0d75561bc 100644 --- a/src/ats/perf_ats_solver.c +++ b/src/ats/perf_ats_solver.c | |||
@@ -1307,16 +1307,14 @@ run (void *cls, char * const *args, const char *cfgfile, | |||
1307 | ph.env.network_count = GNUNET_ATS_NetworkTypeCount; | 1307 | ph.env.network_count = GNUNET_ATS_NetworkTypeCount; |
1308 | ph.env.info_cb = &solver_info_cb; | 1308 | ph.env.info_cb = &solver_info_cb; |
1309 | 1309 | ||
1310 | int networks[GNUNET_ATS_NetworkTypeCount] = GNUNET_ATS_NetworkType; | ||
1311 | for (c = 0; c < GNUNET_ATS_NetworkTypeCount; c++) | 1310 | for (c = 0; c < GNUNET_ATS_NetworkTypeCount; c++) |
1312 | { | 1311 | { |
1313 | ph.env.networks[c] = networks[c]; | ||
1314 | ph.env.out_quota[c] = quotas_out[c]; | 1312 | ph.env.out_quota[c] = quotas_out[c]; |
1315 | ph.env.in_quota[c] = quotas_in[c]; | 1313 | ph.env.in_quota[c] = quotas_in[c]; |
1316 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Loading network quotas: `%s' %llu %llu \n", | 1314 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Loading network quotas: `%s' %llu %llu \n", |
1317 | GNUNET_ATS_print_network_type(ph.env.networks[c]), | 1315 | GNUNET_ATS_print_network_type (c), |
1318 | ph.env.out_quota[c], | 1316 | ph.env.out_quota[c], |
1319 | ph.env.in_quota[c]); | 1317 | ph.env.in_quota[c]); |
1320 | } | 1318 | } |
1321 | GAS_normalization_start (); | 1319 | GAS_normalization_start (); |
1322 | 1320 | ||