diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-07-23 01:52:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-07-23 01:52:24 +0000 |
commit | 3cb7b976608aced73023c23e5d42d0695bf57d90 (patch) | |
tree | c0e4af64da266c7a578b279f666f6b837c822287 /src/or/hibernate.c | |
parent | e843b1395bc4c9b144648a95911e04cd43dac58f (diff) | |
download | tor-3cb7b976608aced73023c23e5d42d0695bf57d90.tar tor-3cb7b976608aced73023c23e5d42d0695bf57d90.tar.gz |
Fix out-of-place declaration
svn:r4640
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index dcf299657..db9c10813 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -865,8 +865,8 @@ accounting_getinfo_helper(const char *question, char **answer) U64_PRINTF_ARG(n_bytes_read_in_interval), U64_PRINTF_ARG(n_bytes_written_in_interval)); } else if (!strcmp(question, "accounting/bytes-left")) { - *answer = tor_malloc(32); uint64_t limit = get_options()->AccountingMax; + *answer = tor_malloc(32); tor_snprintf(*answer, 32, U64_FORMAT" "U64_FORMAT, U64_PRINTF_ARG(limit - n_bytes_read_in_interval), U64_PRINTF_ARG(limit - n_bytes_written_in_interval)); |