aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-01-13 15:25:28 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-12 12:50:16 -0500
commitc8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b (patch)
tree93d4f95c839c0cd6442e8f991039ba8d1450382f /src/or/circuitlist.c
parent48877e24a880be41e4dad50f5ebb6e0671e9f92f (diff)
downloadtor-c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b.tar.gz
tor-c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b.zip
More unit tests for OOM handling.
This gets us up to no interesting untested new or changed lines for the 10169 code.
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 618a42ed36..01d5aee60a 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -1664,7 +1664,7 @@ n_cells_in_circ_queues(const circuit_t *c)
* This function will return incorrect results if the oldest cell queued on
* the circuit is older than 2**32 msec (about 49 days) old.
*/
-static uint32_t
+STATIC uint32_t
circuit_max_queued_cell_age(const circuit_t *c, uint32_t now)
{
uint32_t age = 0;
@@ -1711,7 +1711,7 @@ circuit_get_streams_max_data_age(const edge_connection_t *stream, uint32_t now)
/** Return the age in milliseconds of the oldest buffer chunk on any stream
* attached to the circuit <b>c</b>, where age is taken in milliseconds before
* the time <b>now</b> (in truncated milliseconds since the epoch). */
-static uint32_t
+STATIC uint32_t
circuit_max_queued_data_age(const circuit_t *c, uint32_t now)
{
if (CIRCUIT_IS_ORIGIN(c)) {
@@ -1726,7 +1726,7 @@ circuit_max_queued_data_age(const circuit_t *c, uint32_t now)
/** Return the age of the oldest cell or stream buffer chunk on the circuit
* <b>c</b>, where age is taken in milliseconds before the time <b>now</b> (in
* truncated milliseconds since the epoch). */
-static uint32_t
+STATIC uint32_t
circuit_max_queued_item_age(const circuit_t *c, uint32_t now)
{
uint32_t cell_age = circuit_max_queued_cell_age(c, now);