summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-22 22:24:10 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-22 22:24:10 +0000
commitd4754b334c1780db1dff77c96c68e2f6883a44b3 (patch)
tree39c58f653da2090126b2dcb65e82b09e4097250c /src/or/router.c
parentb9cdb142c90755a12b84d7f656c7c1fab72f8055 (diff)
downloadtor-d4754b334c1780db1dff77c96c68e2f6883a44b3.tar.gz
tor-d4754b334c1780db1dff77c96c68e2f6883a44b3.zip
Compile cleanly on windows; prevent some insane bandwidth cases (e.g., "BandwidthBurst 1000 TB" from occuring.
svn:r2941
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 286ba46779..9690860954 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -561,8 +561,8 @@ int router_rebuild_descriptor(int force) {
}
get_platform_str(platform, sizeof(platform));
ri->platform = tor_strdup(platform);
- ri->bandwidthrate = options->BandwidthRate;
- ri->bandwidthburst = options->BandwidthBurst;
+ ri->bandwidthrate = (int)options->BandwidthRate;
+ ri->bandwidthburst = (int)options->BandwidthBurst;
ri->bandwidthcapacity = router_get_bandwidth_capacity();
router_add_exit_policy_from_config(ri);
if(desc_routerinfo) /* inherit values */