summaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-14 16:49:41 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:49:28 -0500
commit3907faf2fdc28a0c9f85279a58f2059c9a44f9b4 (patch)
treeb195babb833cacd649e1837a30e3c23702b52be1 /src/or/microdesc.c
parent7b34ab3e384b5c72e938d11e5e05c72b9d529bb8 (diff)
downloadtor-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/microdesc.c')
-rw-r--r--src/or/microdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index 18a6fbded7..3fe5e933d0 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -142,8 +142,8 @@ get_microdesc_cache_noload(void)
if (PREDICT_UNLIKELY(the_microdesc_cache==NULL)) {
microdesc_cache_t *cache = tor_malloc_zero(sizeof(*cache));
HT_INIT(microdesc_map, &cache->map);
- cache->cache_fname = get_datadir_fname("cached-microdescs");
- cache->journal_fname = get_datadir_fname("cached-microdescs.new");
+ cache->cache_fname = get_cachedir_fname("cached-microdescs");
+ cache->journal_fname = get_cachedir_fname("cached-microdescs.new");
the_microdesc_cache = cache;
}
return the_microdesc_cache;