[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Possible fix to state-load bug reported by weasel.



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv11318/src/or

Modified Files:
	rephist.c 
Log Message:
Possible fix to state-load bug reported by weasel.

Index: rephist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -p -d -r1.76 -r1.77
--- rephist.c	29 Dec 2005 20:25:53 -0000	1.76
+++ rephist.c	2 Jan 2006 00:42:19 -0000	1.77
@@ -469,7 +469,7 @@ advance_obs(bw_array_t *b)
 /** Add 'n' bytes to the number of bytes in b for second 'when'.
  */
 static INLINE void
-add_obs(bw_array_t *b, time_t when, int n)
+add_obs(bw_array_t *b, time_t when, uint64_t n)
 {
   /* Don't record data in the past. */
   if (when<b->cur_obs_time)