summaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-04-03 17:44:42 +0200
committerDavid Goulet <dgoulet@torproject.org>2018-04-12 10:51:48 -0400
commit5633a633796ca10e2866ff6fd5bc40b5f7895c30 (patch)
treeb6df1655e192213c035e5a39ca89a799d0af2fbf /src/or/config.h
parentbd42367a1e6f60d35242d2a5165f10e3a8623bf7 (diff)
downloadtor-5633a633796ca10e2866ff6fd5bc40b5f7895c30.tar.gz
tor-5633a633796ca10e2866ff6fd5bc40b5f7895c30.zip
Use STATIC for compute_real_max_mem_in_queues
This patch makes compute_real_max_mem_in_queues use the STATIC macro, which allows us to test the function. See: https://bugs.torproject.org/24782
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 2f23809b2e..f6a659d0c6 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -258,6 +258,10 @@ STATIC int parse_port_config(smartlist_t *out,
const unsigned flags);
STATIC int check_bridge_distribution_setting(const char *bd);
+
+STATIC uint64_t compute_real_max_mem_in_queues(const uint64_t val,
+ int log_guess);
+
#endif /* defined(CONFIG_PRIVATE) */
#endif /* !defined(TOR_CONFIG_H) */