[or-cvs] backport: fix a compile warning that was apparently in 0.0.8
Roger Dingledine
arma at seul.org
Thu Oct 14 06:46:41 UTC 2004
Update of /home2/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/0081/src/or
Modified Files:
Tag: tor-0_0_8-patches
main.c
Log Message:
backport: fix a compile warning that was apparently in 0.0.8
Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/src/or/main.c,v
retrieving revision 1.322
retrieving revision 1.322.2.1
diff -u -d -r1.322 -r1.322.2.1
--- main.c 24 Aug 2004 20:46:42 -0000 1.322
+++ main.c 14 Oct 2004 06:46:39 -0000 1.322.2.1
@@ -962,11 +962,13 @@
if (stats_n_seconds_uptime)
log(severity,
#ifdef MS_WINDOWS
- "Average bandwidth used: %I64u/%ld = %d bytes/sec",
+ "Average bandwidth used: %I64u/%ld = %d bytes/sec",
+ stats_n_bytes_read,
#else
"Average bandwidth used: %llu/%ld = %d bytes/sec",
+ (long long unsigned int)stats_n_bytes_read,
#endif
- stats_n_bytes_read, stats_n_seconds_uptime,
+ stats_n_seconds_uptime,
(int) (stats_n_bytes_read/stats_n_seconds_uptime));
rep_hist_dump_stats(now,severity);
More information about the tor-commits
mailing list