From 3477687b451e0b89bff77d1d940ab01dd50220a9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Sep 2011 22:51:07 +0000 Subject: fix #1796 --- src/transport/test_transport_api_unreliability.c | 30 ++---------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'src/transport/test_transport_api_unreliability.c') diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index e4e78bb3e..c675e18a0 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c @@ -396,40 +396,14 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, if (cls == p1) { - char * sec; - long long unsigned int l_bps; - - GNUNET_asprintf(&sec, "transport-%s", test_plugin); - if (GNUNET_CONFIGURATION_have_value (p1->cfg, sec, "MAX_BPS")) - { - GNUNET_CONFIGURATION_get_value_number (p1->cfg, sec, "MAX_BPS", - &l_bps); - max_bps_p1 = l_bps; - } - else - max_bps_p1 = 1024 * 1024 * 1024; - GNUNET_free (sec); - + max_bps_p1 = 1024 * 1024 * 1024; GNUNET_TRANSPORT_set_quota (p1->th, &p2->id, GNUNET_BANDWIDTH_value_init (max_bps_p1), GNUNET_BANDWIDTH_value_init (max_bps_p1)); } else if (cls == p2) { - char * sec; - long long unsigned int l_bps; - - GNUNET_asprintf(&sec, "transport-%s", test_plugin); - if (GNUNET_CONFIGURATION_have_value (p2->cfg, sec, "MAX_BPS")) - { - GNUNET_CONFIGURATION_get_value_number (p2->cfg, sec, "MAX_BPS", - &l_bps); - max_bps_p2 = l_bps; - } - else - max_bps_p2 = 1024 * 1024 * 1024; - GNUNET_free (sec); - + max_bps_p2 = 1024 * 1024 * 1024; GNUNET_TRANSPORT_set_quota (p2->th, &p1->id, GNUNET_BANDWIDTH_value_init (max_bps_p2), GNUNET_BANDWIDTH_value_init (max_bps_p2)); -- cgit v1.2.3