[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix out-of-place declaration
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv15283/src/or
Modified Files:
hibernate.c
Log Message:
Fix out-of-place declaration
Index: hibernate.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- hibernate.c 22 Jul 2005 21:12:10 -0000 1.56
+++ hibernate.c 23 Jul 2005 01:52:24 -0000 1.57
@@ -865,8 +865,8 @@
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));