aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-18 10:08:28 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-18 10:08:28 +0000
commit88320c70883c0a252f2178bed6dfc1605a61dcd3 (patch)
treeab8392be3dd593e2cebbfd1dc34dc14ec7efe2cc /src
parent9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c (diff)
downloadgnunet-88320c70883c0a252f2178bed6dfc1605a61dcd3.tar.gz
gnunet-88320c70883c0a252f2178bed6dfc1605a61dcd3.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/ats/ats_api.c6
-rw-r--r--src/core/test_core_quota_compliance.c24
-rw-r--r--src/fs/gnunet-service-fs_pr.c4
3 files changed, 17 insertions, 17 deletions
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,
341 atc->alloc_cb_cls = alloc_cb_cls; 341 atc->alloc_cb_cls = alloc_cb_cls;
342 atc->peers = GNUNET_CONTAINER_multihashmap_create (256); 342 atc->peers = GNUNET_CONTAINER_multihashmap_create (256);
343 atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256); 343 atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256);
344 GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT", 344 GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_OUT",
345 &atc->total_bps_out); 345 &atc->total_bps_out);
346 GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_IN", 346 GNUNET_CONFIGURATION_get_value_size (cfg, "core", "TOTAL_QUOTA_IN",
347 &atc->total_bps_in); 347 &atc->total_bps_in);
348 return atc; 348 return atc;
349} 349}
350 350
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,
629 629
630 GNUNET_assert (test != -1); 630 GNUNET_assert (test != -1);
631 GNUNET_assert (GNUNET_SYSERR != 631 GNUNET_assert (GNUNET_SYSERR !=
632 GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE", 632 GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE",
633 "TOTAL_QUOTA_IN", 633 "TOTAL_QUOTA_IN",
634 &current_quota_p1_in)); 634 &current_quota_p1_in));
635 GNUNET_assert (GNUNET_SYSERR != 635 GNUNET_assert (GNUNET_SYSERR !=
636 GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE", 636 GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE",
637 "TOTAL_QUOTA_IN", 637 "TOTAL_QUOTA_IN",
638 &current_quota_p2_in)); 638 &current_quota_p2_in));
639 GNUNET_assert (GNUNET_SYSERR != 639 GNUNET_assert (GNUNET_SYSERR !=
640 GNUNET_CONFIGURATION_get_value_number (p1.cfg, "CORE", 640 GNUNET_CONFIGURATION_get_value_size (p1.cfg, "CORE",
641 "TOTAL_QUOTA_OUT", 641 "TOTAL_QUOTA_OUT",
642 &current_quota_p1_out)); 642 &current_quota_p1_out));
643 GNUNET_assert (GNUNET_SYSERR != 643 GNUNET_assert (GNUNET_SYSERR !=
644 GNUNET_CONFIGURATION_get_value_number (p2.cfg, "CORE", 644 GNUNET_CONFIGURATION_get_value_size (p2.cfg, "CORE",
645 "TOTAL_QUOTA_OUT", 645 "TOTAL_QUOTA_OUT",
646 &current_quota_p2_out)); 646 &current_quota_p2_out));
647 647
648 p1.ch = 648 p1.ch =
649 GNUNET_CORE_connect (p1.cfg, 1, &p1, &init_notify, &connect_notify, 649 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_ ()
1587 "MAX_PENDING_REQUESTS"); 1587 "MAX_PENDING_REQUESTS");
1588 } 1588 }
1589 if (GNUNET_OK != 1589 if (GNUNET_OK !=
1590 GNUNET_CONFIGURATION_get_value_number (GSF_cfg, "core", "TOTAL_QUOTA_OUT", 1590 GNUNET_CONFIGURATION_get_value_size (GSF_cfg, "core", "TOTAL_QUOTA_OUT",
1591 &bps)) 1591 &bps))
1592 { 1592 {
1593 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1593 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1594 _ 1594 _