diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-18 11:21:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-18 11:23:45 -0400 |
commit | 1e78100b250a55a925c7e8b510090a8ceee19025 (patch) | |
tree | 4380af874b5ea02219baaad19f994ff4d261ae89 /src/or | |
parent | ae641971955f5ff4969a57cd7a011f41eb303bb4 (diff) | |
download | tor-1e78100b250a55a925c7e8b510090a8ceee19025.tar.gz tor-1e78100b250a55a925c7e8b510090a8ceee19025.zip |
Add a test for n_cells_in_circuit_queues
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/circuitlist.c | 2 | ||||
-rw-r--r-- | src/or/circuitlist.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 2a85b7d895..85bacce485 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -1640,7 +1640,7 @@ marked_circuit_free_cells(circuit_t *circ) } /** Return the number of cells used by the circuit <b>c</b>'s cell queues. */ -static size_t +STATIC size_t n_cells_in_circ_queues(const circuit_t *c) { size_t n = c->n_chan_cells.n; diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index a5a54859b2..4e56f5264f 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -72,6 +72,7 @@ void channel_note_destroy_not_pending(channel_t *chan, circid_t id); #ifdef CIRCUITLIST_PRIVATE STATIC void circuit_free(circuit_t *circ); +STATIC size_t n_cells_in_circ_queues(const circuit_t *c); #endif #endif |