aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorKevin Butler <haqkrs@gmail.com>2013-09-04 23:25:41 +0100
committerKevin Butler <haqkrs@gmail.com>2013-09-04 23:25:41 +0100
commit0f070e7858d4270983141a701116de9353fb3fb6 (patch)
treec3c11fb816e811139286c78bd371108abd045d0b /src/common/util.c
parent1bdb391ed0df979bc29ed1b62e7c0f3c9494a8d7 (diff)
downloadtor-0f070e7858d4270983141a701116de9353fb3fb6.tar
tor-0f070e7858d4270983141a701116de9353fb3fb6.tar.gz
Added test for new write_chunks_to_file behaviour in #1376.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 4e84d942e..695d0486c 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);