diff options
author | Kevin Butler <haqkrs@gmail.com> | 2013-09-04 23:25:41 +0100 |
---|---|---|
committer | Kevin Butler <haqkrs@gmail.com> | 2013-09-04 23:25:41 +0100 |
commit | 0f070e7858d4270983141a701116de9353fb3fb6 (patch) | |
tree | c3c11fb816e811139286c78bd371108abd045d0b /src/common | |
parent | 1bdb391ed0df979bc29ed1b62e7c0f3c9494a8d7 (diff) | |
download | tor-0f070e7858d4270983141a701116de9353fb3fb6.tar.gz tor-0f070e7858d4270983141a701116de9353fb3fb6.zip |
Added test for new write_chunks_to_file behaviour in #1376.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 4e84d942e8..695d0486c4 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -2191,11 +2191,12 @@ write_chunks_to_file_impl(const char *fname, const smartlist_t *chunks, } /** Given a smartlist of sized_chunk_t, write them to a file - * <b>fname</b>, overwriting or creating the file as necessary. + * <b>fname</b>, overwriting or creating the file as necessary. * If <b>no_tempfile</b> is 0 then the file will be written * atomically. */ int -write_chunks_to_file(const char *fname, const smartlist_t *chunks, int bin, int no_tempfile) +write_chunks_to_file(const char *fname, const smartlist_t *chunks, int bin, + int no_tempfile) { int flags = OPEN_FLAGS_REPLACE|(bin?O_BINARY:O_TEXT); |