summaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-12-13 06:13:05 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 22:49:58 -0700
commit8907554cf3e4e87515fecde40ae2088fdded523f (patch)
treed84c590d528e7c8c98f1959620b941b3fc01b32a /src/or/circuitlist.c
parentdabf4c33e2c42024aebb305c17e9caf1d6b6c84b (diff)
downloadtor-8907554cf3e4e87515fecde40ae2088fdded523f.tar.gz
tor-8907554cf3e4e87515fecde40ae2088fdded523f.zip
Make channel_note_destroy_not_pending() mockable
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 9d72ea1111..7b4eda3fa7 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -302,8 +302,8 @@ channel_note_destroy_pending(channel_t *chan, circid_t id)
/** Called to indicate that a DESTROY is no longer pending on <b>chan</b> with
* circuit ID <b>id</b> -- typically, because it has been sent. */
-void
-channel_note_destroy_not_pending(channel_t *chan, circid_t id)
+MOCK_IMPL(void, channel_note_destroy_not_pending,
+ (channel_t *chan, circid_t id))
{
circuit_t *circ = circuit_get_by_circid_channel_even_if_marked(id,chan);
if (circ) {