aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.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/connection_or.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/connection_or.c')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 73b635d593..c9d3bc8b46 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -136,7 +136,7 @@ connection_or_init_conn_from_address(connection_t *conn,
conn->addr = addr;
conn->port = port;
/* This next part isn't really right, but it's good enough for now. */
- conn->receiver_bucket = conn->bandwidth = options->BandwidthBurst;
+ conn->receiver_bucket = conn->bandwidth = (int)options->BandwidthBurst;
memcpy(conn->identity_digest, id_digest, DIGEST_LEN);
/* If we're an authoritative directory server, we may know a
* nickname for this router. */