diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-30 06:13:44 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-30 07:03:26 +0000 |
commit | 42f089473a50613ae62875ede386861e91123b78 (patch) | |
tree | 4a4a69cb6a2c709d4fcaab24edec254ddf1f25c6 /src/common/util.h | |
parent | 2154160a2484d852e4a0b509a5f046001d52fd11 (diff) | |
download | tor-42f089473a50613ae62875ede386861e91123b78.tar.gz tor-42f089473a50613ae62875ede386861e91123b78.zip |
Unit test for dump_desc_populate_one_file()
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h index 70483bbc24..157d25a812 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -367,8 +367,9 @@ int write_bytes_to_new_file(const char *fname, const char *str, size_t len, #ifndef _WIN32 struct stat; #endif -char *read_file_to_str(const char *filename, int flags, struct stat *stat_out) - ATTR_MALLOC; +MOCK_DECL_ATTR(char *, read_file_to_str, + (const char *filename, int flags, struct stat *stat_out), + ATTR_MALLOC); char *read_file_to_str_until_eof(int fd, size_t max_bytes_to_read, size_t *sz_out) ATTR_MALLOC; |