From 3cb7b976608aced73023c23e5d42d0695bf57d90 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 23 Jul 2005 01:52:24 +0000 Subject: Fix out-of-place declaration svn:r4640 --- src/or/hibernate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/hibernate.c') 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)); -- cgit v1.2.3