diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-17 16:55:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-17 16:55:44 +0000 |
commit | f988f93b1a54ccbfabbf464514c526033f48e15c (patch) | |
tree | d8b7ecfa712171ad29e960c410d3fbd1017c193a /src/or/hibernate.c | |
parent | 4088a90d5580612bd3a347be3ddddf3891b60469 (diff) | |
download | tor-f988f93b1a54ccbfabbf464514c526033f48e15c.tar.gz tor-f988f93b1a54ccbfabbf464514c526033f48e15c.zip |
r15877@catbus: nickm | 2007-10-17 12:54:56 -0400
Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff".
svn:r12000
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index e189898374..8fade846c5 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -575,10 +575,9 @@ read_bandwidth_usage(void) or_state_t *state = get_or_state(); { - char fname[512]; - tor_snprintf(fname, sizeof(fname), "%s/bw_accounting", - get_options()->DataDirectory); + char *fname = get_datadir_fname("bw_accounting"); unlink(fname); + tor_free(fname); } if (!state) |