aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorChelsea H. Komlo <chelsea.komlo@gmail.com>2016-10-14 07:00:35 -0500
committerChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-24 08:12:30 -0500
commitafb6ae7b0fb87550c12e09e5eb7c2a09e675909d (patch)
tree528b13859fd421257f3d94800f31ca71def17134 /src/or/circuitbuild.c
parentb95998ef0c31c78a9952621eb1f7365ceb1d2c84 (diff)
downloadtor-afb6ae7b0fb87550c12e09e5eb7c2a09e675909d.tar.gz
tor-afb6ae7b0fb87550c12e09e5eb7c2a09e675909d.zip
Refactor circuit_predict_and_launch_new
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0881f231aa..dee8ac05ff 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1508,9 +1508,9 @@ circuit_get_unhandled_ports(time_t now)
* If we're returning 0, set need_uptime and need_capacity to
* indicate any requirements that the unhandled ports have.
*/
-int
-circuit_all_predicted_ports_handled(time_t now, int *need_uptime,
- int *need_capacity)
+MOCK_IMPL(int,
+circuit_all_predicted_ports_handled, (time_t now, int *need_uptime,
+ int *need_capacity))
{
int i, enough;
uint16_t *port;