aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-22 22:50:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-22 22:50:17 +0000
commitfe32c2d1412e7a3906fa4f0ae0f99f12de5b882b (patch)
treed759a2f24234879d3f4b1da5851a714b4eaf73a7 /src/or/connection.c
parentd4754b334c1780db1dff77c96c68e2f6883a44b3 (diff)
downloadtor-fe32c2d1412e7a3906fa4f0ae0f99f12de5b882b.tar
tor-fe32c2d1412e7a3906fa4f0ae0f99f12de5b882b.tar.gz
Fix sign-related warnings
svn:r2942
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 7035b8dc0..3a168d368 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -735,11 +735,11 @@ void connection_bucket_refill(struct timeval *now) {
or_options_t *options = get_options();
/* refill the global buckets */
- if(global_read_bucket < options->BandwidthBurst) {
+ if((unsigned)global_read_bucket < options->BandwidthBurst) {
global_read_bucket += (int)options->BandwidthRate;
log_fn(LOG_DEBUG,"global_read_bucket now %d.", global_read_bucket);
}
- if(global_write_bucket < options->BandwidthBurst) {
+ if((unsigned)global_write_bucket < options->BandwidthBurst) {
global_write_bucket += (int)options->BandwidthRate;
log_fn(LOG_DEBUG,"global_write_bucket now %d.", global_write_bucket);
}