diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-14 16:49:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-05 19:49:28 -0500 |
commit | 3907faf2fdc28a0c9f85279a58f2059c9a44f9b4 (patch) | |
tree | b195babb833cacd649e1837a30e3c23702b52be1 /src/or/conscache.c | |
parent | 7b34ab3e384b5c72e938d11e5e05c72b9d529bb8 (diff) | |
download | tor-3907faf2fdc28a0c9f85279a58f2059c9a44f9b4.tar.gz tor-3907faf2fdc28a0c9f85279a58f2059c9a44f9b4.zip |
New accessors for keydir/cachedir access
This patch is a result of auditing all of our uses of
get_datadir_fname() and its kin, and dividing them into cache vs
keys vs other data.
The new get_keydir_fname() and get_cachedir_fname() functions don't
actually do anything new yet.
Diffstat (limited to 'src/or/conscache.c')
-rw-r--r-- | src/or/conscache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/conscache.c b/src/or/conscache.c index 0f3e453eaf..1407d0f0b9 100644 --- a/src/or/conscache.c +++ b/src/or/conscache.c @@ -79,7 +79,7 @@ consensus_cache_open(const char *subdir, int max_entries) { int storagedir_max_entries; consensus_cache_t *cache = tor_malloc_zero(sizeof(consensus_cache_t)); - char *directory = get_datadir_fname(subdir); + char *directory = get_cachedir_fname(subdir); cache->max_entries = max_entries; #ifdef MUST_UNMAP_TO_UNLINK |