From: Christian Grothoff Date: Fri, 18 Nov 2011 10:08:28 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~15879 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=88320c70883c0a252f2178bed6dfc1605a61dcd3;p=oweals%2Fgnunet.git fix --- diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c index e25f9a8ec..8ebc240e1 100644 --- a/src/ats/ats_api.c +++ b/src/ats/ats_api.c @@ -341,10 +341,10 @@ GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg, atc->alloc_cb_cls = alloc_cb_cls; atc->peers = GNUNET_CONTAINER_multihashmap_create (256); atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256); - GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT", + GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_OUT", &atc->total_bps_out); - GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_IN", - &atc->total_bps_in); + GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_IN", + &atc->total_bps_in); return atc; } diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index 856ed13fd..dd8f16a2c 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c @@ -629,21 +629,21 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_assert (test != -1); GNUNET_assert (GNUNET_SYSERR != - GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE", - "TOTAL_QUOTA_IN", - ¤t_quota_p1_in)); + GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE", + "TOTAL_QUOTA_IN", + ¤t_quota_p1_in)); GNUNET_assert (GNUNET_SYSERR != - GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE", - "TOTAL_QUOTA_IN", - ¤t_quota_p2_in)); + GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE", + "TOTAL_QUOTA_IN", + ¤t_quota_p2_in)); GNUNET_assert (GNUNET_SYSERR != - GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE", - "TOTAL_QUOTA_OUT", - ¤t_quota_p1_out)); + GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE", + "TOTAL_QUOTA_OUT", + ¤t_quota_p1_out)); GNUNET_assert (GNUNET_SYSERR != - GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE", - "TOTAL_QUOTA_OUT", - ¤t_quota_p2_out)); + GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE", + "TOTAL_QUOTA_OUT", + ¤t_quota_p2_out)); p1.ch = GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify, diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index 3b43b4c5f..d382e1f93 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c @@ -1587,8 +1587,8 @@ GSF_pending_request_init_ () "MAX_PENDING_REQUESTS"); } if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_number (GSF_cfg, "core", "TOTAL_QUOTA_OUT", - &bps)) + GNUNET_CONFIGURATION_get_value_size (GSF_cfg, "core", "TOTAL_QUOTA_OUT", + &bps)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, _