diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-23 06:42:14 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:14:25 -0700 |
commit | a2de0a1034b3d4c1433c548526a1401e51540bc1 (patch) | |
tree | d1576248233bca9fd9a8c0eb8e87a98ca584f856 /src/or/buffers.h | |
parent | 8719f8ff09346f2aaa596ec77ff326923379ccde (diff) | |
download | tor-a2de0a1034b3d4c1433c548526a1401e51540bc1.tar.gz tor-a2de0a1034b3d4c1433c548526a1401e51540bc1.zip |
Make buf_datalen() mockable
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index c90e14750e..6b91a2d6c1 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -24,7 +24,7 @@ void buf_shrink(buf_t *buf); size_t buf_shrink_freelists(int free_all); void buf_dump_freelist_sizes(int severity); -size_t buf_datalen(const buf_t *buf); +MOCK_DECL(size_t, buf_datalen, (const buf_t *buf)); size_t buf_allocation(const buf_t *buf); size_t buf_slack(const buf_t *buf); |