diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-11 12:51:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-10-11 12:51:15 -0400 |
commit | 0546edde66b3ca3dfbbd51f95b906d9e8f4f1459 (patch) | |
tree | 87e24c4d904e173094d49e84242dfdaf0960ed11 /src/or | |
parent | 6f9584b3fd5346bfc7ee58dedee2f1c292bf0354 (diff) | |
parent | 7ef9ecf6b38041e38dd079c2d18b5c8813d1959a (diff) | |
download | tor-0546edde66b3ca3dfbbd51f95b906d9e8f4f1459.tar.gz tor-0546edde66b3ca3dfbbd51f95b906d9e8f4f1459.zip |
Merge branch 'bug1376'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirvote.c | 2 | ||||
-rw-r--r-- | src/or/routerlist.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 12ceba8549..456a033ec9 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -3143,7 +3143,7 @@ dirvote_compute_consensuses(void) }); votefile = get_datadir_fname("v3-status-votes"); - write_chunks_to_file(votefile, votestrings, 0); + write_chunks_to_file(votefile, votestrings, 0, 0); tor_free(votefile); SMARTLIST_FOREACH(votestrings, sized_chunk_t *, c, tor_free(c)); smartlist_free(votestrings); diff --git a/src/or/routerlist.c b/src/or/routerlist.c index cf9cf87a27..c0c4d9a4c0 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -449,7 +449,7 @@ trusted_dirs_flush_certs_to_disk(void) } DIGESTMAP_FOREACH_END; filename = get_datadir_fname("cached-certs"); - if (write_chunks_to_file(filename, chunks, 0)) { + if (write_chunks_to_file(filename, chunks, 0, 0)) { log_warn(LD_FS, "Error writing certificates to disk."); } tor_free(filename); @@ -1069,7 +1069,7 @@ router_rebuild_store(int flags, desc_store_t *store) smartlist_add(chunk_list, c); } SMARTLIST_FOREACH_END(sd); - if (write_chunks_to_file(fname_tmp, chunk_list, 1)<0) { + if (write_chunks_to_file(fname_tmp, chunk_list, 1, 1)<0) { log_warn(LD_FS, "Error writing router store to disk."); goto done; } |