summaryrefslogtreecommitdiff
path: root/src/or/scheduler.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-28 17:25:37 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:58 -0700
commitdc3af04ba8c65e1217f834f04be2a055e8084ec8 (patch)
treee2552fec4f6f5b632d82a3180b73af2ba2182388 /src/or/scheduler.c
parentf8ceb0f028eb7661cb31b2f82d5a82460e96ece9 (diff)
downloadtor-dc3af04ba8c65e1217f834f04be2a055e8084ec8.tar.gz
tor-dc3af04ba8c65e1217f834f04be2a055e8084ec8.zip
Make scheduler_compare_channels() mockable
Diffstat (limited to 'src/or/scheduler.c')
-rw-r--r--src/or/scheduler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/scheduler.c b/src/or/scheduler.c
index bf86810517..c161393b5a 100644
--- a/src/or/scheduler.c
+++ b/src/or/scheduler.c
@@ -167,8 +167,8 @@ scheduler_free_all(void)
* Comparison function to use when sorting pending channels
*/
-STATIC int
-scheduler_compare_channels(const void *c1_v, const void *c2_v)
+MOCK_IMPL(STATIC int,
+scheduler_compare_channels, (const void *c1_v, const void *c2_v))
{
channel_t *c1 = NULL, *c2 = NULL;
/* These are a workaround for -Wbad-function-cast throwing a fit */