summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2014-01-23 06:42:14 -0800
committerAndrea Shepard <andrea@torproject.org>2014-09-30 23:14:25 -0700
commita2de0a1034b3d4c1433c548526a1401e51540bc1 (patch)
treed1576248233bca9fd9a8c0eb8e87a98ca584f856 /src/or/buffers.c
parent8719f8ff09346f2aaa596ec77ff326923379ccde (diff)
downloadtor-a2de0a1034b3d4c1433c548526a1401e51540bc1.tar.gz
tor-a2de0a1034b3d4c1433c548526a1401e51540bc1.zip
Make buf_datalen() mockable
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 033f86288e..85eff36b4c 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -559,8 +559,8 @@ buf_clear(buf_t *buf)
}
/** Return the number of bytes stored in <b>buf</b> */
-size_t
-buf_datalen(const buf_t *buf)
+MOCK_IMPL(size_t,
+buf_datalen, (const buf_t *buf))
{
return buf->datalen;
}