summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-14 16:10:12 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:49:28 -0500
commit2e872f6b32edaace096180c249934c620cd3ce35 (patch)
tree305d172b6f38e10eb4604577347ca7501d9f0731 /src/or/networkstatus.c
parent36779df4c4617f3116faaee2aa5079537eed0822 (diff)
downloadtor-2e872f6b32edaace096180c249934c620cd3ce35.tar.gz
tor-2e872f6b32edaace096180c249934c620cd3ce35.zip
Use get_datadir_fname() accessor in networkstatus.c
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index a7aa01f787..ff32476685 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2260,7 +2260,6 @@ void
networkstatus_dump_bridge_status_to_file(time_t now)
{
char *status = networkstatus_getinfo_by_purpose("bridge", now);
- const or_options_t *options = get_options();
char *fname = NULL;
char *thresholds = NULL;
char *published_thresholds_and_status = NULL;
@@ -2282,8 +2281,7 @@ networkstatus_dump_bridge_status_to_file(time_t now)
"published %s\nflag-thresholds %s\n%s%s",
published, thresholds, fingerprint_line ? fingerprint_line : "",
status);
- tor_asprintf(&fname, "%s"PATH_SEPARATOR"networkstatus-bridges",
- options->DataDirectory);
+ fname = get_datadir_fname("networkstatus-bridges");
write_str_to_file(fname,published_thresholds_and_status,0);
tor_free(thresholds);
tor_free(published_thresholds_and_status);