aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2013-08-14 18:00:08 +0300
committerNick Mathewson <nickm@torproject.org>2013-08-15 12:03:38 -0400
commitc5269a59b011c8e961c7e88185b84e78af33d904 (patch)
treed22705c08b3db56d045a320b1e6c7fc359757957 /src/common/util.h
parent94db455472c2bf0484bcfacb81f8ca05836c5cdf (diff)
downloadtor-c5269a59b011c8e961c7e88185b84e78af33d904.tar
tor-c5269a59b011c8e961c7e88185b84e78af33d904.tar.gz
Test ExtORPort cookie initialization when file writing is broken.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 0a8e4a23f..8dfb2de5f 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -355,8 +355,9 @@ FILE *fdopen_file(open_file_t *file_data);
int finish_writing_to_file(open_file_t *file_data);
int abort_writing_to_file(open_file_t *file_data);
int write_str_to_file(const char *fname, const char *str, int bin);
-int write_bytes_to_file(const char *fname, const char *str, size_t len,
- int bin);
+MOCK_DECL(int,
+write_bytes_to_file,(const char *fname, const char *str, size_t len,
+ int bin));
/** An ad-hoc type to hold a string of characters and a count; used by
* write_chunks_to_file. */
typedef struct sized_chunk_t {