diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-09 15:46:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-09 15:46:21 +0000 |
commit | 829bf4dcd0318431010da3ff5e3785fb9fb2f80c (patch) | |
tree | 50f44fe675b886f6ca132cf5532ceb1e88d133a1 /src/or/router.c | |
parent | fa3ee3600eb7a443343af560e10eab7263d75d31 (diff) | |
download | tor-829bf4dcd0318431010da3ff5e3785fb9fb2f80c.tar tor-829bf4dcd0318431010da3ff5e3785fb9fb2f80c.tar.gz |
r8970@totoro: nickm | 2006-10-09 10:12:53 -0400
Win32 patch from Matt Edman: fix compilation bugs by casting to int; defining SSIZE_T; defining USE_TWOS_COMPLEMENT in windows orconfig.h; and using the proper names for win32 functions on GetProcAddress. Also fixes bug 295.
svn:r8669
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 5f192cb53..5e5c1bebc 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -500,12 +500,12 @@ server_has_changed_ip(void) mark_my_descriptor_dirty(); } -/** We have enough testing circuit open. Send a bunch of "drop" +/** We have enough testing circuits open. Send a bunch of "drop" * cells down each of them, to exercise our bandwidth. */ void router_perform_bandwidth_test(int num_circs, time_t now) { - int num_cells = get_options()->BandwidthRate * 10 / CELL_NETWORK_SIZE; + int num_cells = (int)(get_options()->BandwidthRate * 10 / CELL_NETWORK_SIZE); int max_cells = num_cells < CIRCWINDOW_START ? num_cells : CIRCWINDOW_START; int cells_per_circuit = max_cells / num_circs; |