aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-11 12:51:07 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-11 12:51:07 -0400
commit7ef9ecf6b38041e38dd079c2d18b5c8813d1959a (patch)
tree99986eba096b3c9f99fbc71c90f6bec590349c25 /src/common/util.c
parent0f070e7858d4270983141a701116de9353fb3fb6 (diff)
downloadtor-7ef9ecf6b38041e38dd079c2d18b5c8813d1959a.tar
tor-7ef9ecf6b38041e38dd079c2d18b5c8813d1959a.tar.gz
Fix some whitespace; tighten the tests.
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 695d0486c..f31a5d84f 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2196,12 +2196,12 @@ write_chunks_to_file_impl(const char *fname, const smartlist_t *chunks,
* atomically. */
int
write_chunks_to_file(const char *fname, const smartlist_t *chunks, int bin,
- int no_tempfile)
+ int no_tempfile)
{
int flags = OPEN_FLAGS_REPLACE|(bin?O_BINARY:O_TEXT);
if (no_tempfile) {
- // O_APPEND stops write_chunks_to_file from using tempfiles
+ /* O_APPEND stops write_chunks_to_file from using tempfiles */
flags |= O_APPEND;
}
return write_chunks_to_file_impl(fname, chunks, flags);