summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-30 06:13:44 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-30 07:03:26 +0000
commit42f089473a50613ae62875ede386861e91123b78 (patch)
tree4a4a69cb6a2c709d4fcaab24edec254ddf1f25c6 /src/common/util.c
parent2154160a2484d852e4a0b509a5f046001d52fd11 (diff)
downloadtor-42f089473a50613ae62875ede386861e91123b78.tar.gz
tor-42f089473a50613ae62875ede386861e91123b78.zip
Unit test for dump_desc_populate_one_file()
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index d60380cb9b..97837f565d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2676,8 +2676,8 @@ read_file_to_str_until_eof(int fd, size_t max_bytes_to_read, size_t *sz_out)
* the call to stat and the call to read_all: the resulting string will
* be truncated.
*/
-char *
-read_file_to_str(const char *filename, int flags, struct stat *stat_out)
+MOCK_IMPL(char *,
+read_file_to_str, (const char *filename, int flags, struct stat *stat_out))
{
int fd; /* router file */
struct stat statbuf;