aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authordana koch <dsk@google.com>2014-05-12 09:16:06 +1000
committerNick Mathewson <nickm@torproject.org>2014-05-11 23:36:00 -0400
commitd6e6c63baf4409766ffd82fc859187b6285b093f (patch)
tree0a38dfcecc034cc33348a238cc0a210d840f2e67 /src/or/main.c
parentde2010e9c229cb130c30659aa62122529c125637 (diff)
downloadtor-d6e6c63baf4409766ffd82fc859187b6285b093f.tar
tor-d6e6c63baf4409766ffd82fc859187b6285b093f.tar.gz
Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.
On OpenBSD 5.4, time_t is a 32-bit integer. These instances contain implicit treatment of long and time_t as comparable types, so explicitly cast to time_t.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 1e591577f..5532026e3 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1755,7 +1755,7 @@ refill_callback(periodic_timer_t *timer, void *arg)
accounting_add_bytes(bytes_read, bytes_written, seconds_rolled_over);
if (milliseconds_elapsed > 0)
- connection_bucket_refill(milliseconds_elapsed, now.tv_sec);
+ connection_bucket_refill(milliseconds_elapsed, (time_t)now.tv_sec);
stats_prev_global_read_bucket = global_read_bucket;
stats_prev_global_write_bucket = global_write_bucket;