From bb785c0ae604983a83dc7983060afcc73b1992c0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Jun 2012 18:30:21 +0000 Subject: [PATCH] -fix configs --- src/dht/test_dht_monitor.c | 7 +++---- src/dht/test_dht_multipeer.c | 2 +- src/dht/test_dht_topo.c | 6 +++--- src/dht/test_dht_twopeer.c | 2 +- src/dht/test_dht_twopeer_get_put.c | 2 +- src/dht/test_dht_twopeer_path_tracking.c | 2 +- src/dht/test_dht_twopeer_put_get.c | 2 +- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/dht/test_dht_monitor.c b/src/dht/test_dht_monitor.c index ca6704a09..31c5e7bc4 100644 --- a/src/dht/test_dht_monitor.c +++ b/src/dht/test_dht_monitor.c @@ -553,10 +553,10 @@ run (void *cls, char *const *args, const char *cfgfile, NULL); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Starting daemons.\n"); - GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing", + GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing_old", "use_progressbars", "YES"); if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing", + GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing_old", "num_peers", &num_peers)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, @@ -564,8 +564,7 @@ run (void *cls, char *const *args, const char *cfgfile, return; } - if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (testing_cfg, "testing", + if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (testing_cfg, "testing_old", "topology_output_file", &topology_file)) { diff --git a/src/dht/test_dht_multipeer.c b/src/dht/test_dht_multipeer.c index ab7d90e24..f4f99a633 100644 --- a/src/dht/test_dht_multipeer.c +++ b/src/dht/test_dht_multipeer.c @@ -797,7 +797,7 @@ run (void *cls, char *const *args, const char *cfgfile, return; } if (GNUNET_SYSERR == - GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", + GNUNET_CONFIGURATION_get_value_number (cfg, "testing_old", "num_peers", &num_peers)) num_peers = DEFAULT_NUM_PEERS; pg = GNUNET_TESTING_peergroup_start (cfg, num_peers, TIMEOUT, NULL, diff --git a/src/dht/test_dht_topo.c b/src/dht/test_dht_topo.c index f51f3a663..64918fe26 100644 --- a/src/dht/test_dht_topo.c +++ b/src/dht/test_dht_topo.c @@ -483,10 +483,10 @@ run (void *cls, char *const *args, const char *cfgfile, "WARNING", NULL); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemons.\n"); - GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing", + GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing_old", "use_progressbars", "YES"); if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing", + GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing_old", "num_peers", &num_peers)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, @@ -495,7 +495,7 @@ run (void *cls, char *const *args, const char *cfgfile, } if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (testing_cfg, "testing", + GNUNET_CONFIGURATION_get_value_string (testing_cfg, "testing_old", "topology_output_file", &topology_file)) { diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c index f0ac05b1c..a4664946f 100644 --- a/src/dht/test_dht_twopeer.c +++ b/src/dht/test_dht_twopeer.c @@ -428,7 +428,7 @@ run (void *cls, char *const *args, const char *cfgfile, } if (GNUNET_SYSERR == - GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", + GNUNET_CONFIGURATION_get_value_number (cfg, "testing_old", "num_peers", &num_peers)) num_peers = DEFAULT_NUM_PEERS; diff --git a/src/dht/test_dht_twopeer_get_put.c b/src/dht/test_dht_twopeer_get_put.c index 3271d046d..775418fe1 100644 --- a/src/dht/test_dht_twopeer_get_put.c +++ b/src/dht/test_dht_twopeer_get_put.c @@ -519,7 +519,7 @@ run (void *cls, char *const *args, const char *cfgfile, /* Get number of peers to start from configuration (should be two) */ if (GNUNET_SYSERR == - GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", + GNUNET_CONFIGURATION_get_value_number (cfg, "testing_old", "num_peers", &num_peers)) num_peers = DEFAULT_NUM_PEERS; diff --git a/src/dht/test_dht_twopeer_path_tracking.c b/src/dht/test_dht_twopeer_path_tracking.c index 6ecf6a381..f45d3b6b7 100644 --- a/src/dht/test_dht_twopeer_path_tracking.c +++ b/src/dht/test_dht_twopeer_path_tracking.c @@ -441,7 +441,7 @@ run (void *cls, char *const *args, const char *cfgfile, /* Get number of peers to start from configuration (should be two) */ if (GNUNET_SYSERR == - GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", + GNUNET_CONFIGURATION_get_value_number (cfg, "testing_old", "num_peers", &num_peers)) num_peers = DEFAULT_NUM_PEERS; diff --git a/src/dht/test_dht_twopeer_put_get.c b/src/dht/test_dht_twopeer_put_get.c index 44150e3e0..9419194b9 100644 --- a/src/dht/test_dht_twopeer_put_get.c +++ b/src/dht/test_dht_twopeer_put_get.c @@ -439,7 +439,7 @@ run (void *cls, char *const *args, const char *cfgfile, /* Get number of peers to start from configuration (should be two) */ if (GNUNET_SYSERR == - GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers", + GNUNET_CONFIGURATION_get_value_number (cfg, "testing_old", "num_peers", &num_peers)) num_peers = DEFAULT_NUM_PEERS; -- 2.25.1