aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-04-29 02:18:34 -0700
committerAndrea Shepard <andrea@torproject.org>2014-04-29 02:18:34 -0700
commit91ff10f6be984c6ca00a7240d32e79ab7db09c7c (patch)
treef05158871709b439772283b0828a1110fa8e8513 /src/or
parentcdc64f020c926cd51b037b85b5eba5bf08d66e7d (diff)
downloadtor-91ff10f6be984c6ca00a7240d32e79ab7db09c7c.tar
tor-91ff10f6be984c6ca00a7240d32e79ab7db09c7c.tar.gz
Make --disable-buf-freelists build and pass unit tests
Diffstat (limited to 'src/or')
-rw-r--r--src/or/buffers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index fb186081c..e54751db2 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -117,6 +117,9 @@ chunk_repack(chunk_t *chunk)
chunk->data = &chunk->mem[0];
}
+/** Keep track of total size of allocated chunks for consistency asserts */
+static size_t total_bytes_allocated_in_chunks = 0;
+
#if defined(ENABLE_BUF_FREELISTS) || defined(RUNNING_DOXYGEN)
/** A freelist of chunks. */
typedef struct chunk_freelist_t {
@@ -148,9 +151,6 @@ static chunk_freelist_t freelists[] = {
* could help with? */
static uint64_t n_freelist_miss = 0;
-/** DOCDOC */
-static size_t total_bytes_allocated_in_chunks = 0;
-
static void assert_freelist_ok(chunk_freelist_t *fl);
/** Return the freelist to hold chunks of size <b>alloc</b>, or NULL if