aboutsummaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-23 21:13:26 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:57 -0700
commit71a9ed6feb9e28cce0a2e776e23b440b0139e479 (patch)
tree78ae867b5dff7beb9f8e03168a23f6d9e6e27ac9 /src/or/scheduler.c
parent0af88f909661b8fd2987beb839c78b804212abc7 (diff)
downloadtor-71a9ed6feb9e28cce0a2e776e23b440b0139e479.tar.gz
tor-71a9ed6feb9e28cce0a2e776e23b440b0139e479.zip
Make some scheduler.c static functions visible to the test suite
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index 71da4a4435..1b4ae04182 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -12,6 +12,7 @@
#include "channel.h"
#include "compat_libevent.h"
+#define SCHEDULER_PRIVATE_
#include "scheduler.h"
#ifdef HAVE_EVENT2_EVENT_H
@@ -141,8 +142,6 @@ static void scheduler_retrigger(void);
#if 0
static void scheduler_trigger(void);
#endif
-static uint64_t scheduler_get_queue_heuristic(void);
-static void scheduler_update_queue_heuristic(time_t now);
/* Scheduler function implementations */
@@ -642,7 +641,7 @@ scheduler_adjust_queue_size(channel_t *chan, char dir, uint64_t adj)
* Query the current value of the queue heuristic
*/
-static uint64_t
+STATIC uint64_t
scheduler_get_queue_heuristic(void)
{
time_t now = approx_time();
@@ -656,7 +655,7 @@ scheduler_get_queue_heuristic(void)
* Adjust the queue heuristic value to the present time
*/
-static void
+STATIC void
scheduler_update_queue_heuristic(time_t now)
{
time_t diff;