aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-12-27 11:37:16 +0100
committerSebastian Hahn <sebastian@torproject.org>2010-12-27 11:37:16 +0100
commit59a3d536d80d49da956d5e4e0c59a97164e1f9c4 (patch)
tree4f2e45f1914ab21b3917fa43b14caa138d79e1f5 /src/or
parent5a9903b9e09697ac131c841310dd82eebcca02e0 (diff)
downloadtor-59a3d536d80d49da956d5e4e0c59a97164e1f9c4.tar
tor-59a3d536d80d49da956d5e4e0c59a97164e1f9c4.tar.gz
Fix compile without warnings on OS X 10.6
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rephist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index e59fcb56a..1bbfe310f 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -335,12 +335,12 @@ rep_hist_note_router_reachable(const char *id, const tor_addr_t *at_addr,
tor_assert(at_addr);
if ((ns = networkstatus_get_latest_consensus())) {
- int fresh_interval = ns->fresh_until - ns->valid_after;
- int live_interval = ns->valid_until - ns->valid_after;
+ int fresh_interval = (int)(ns->fresh_until - ns->valid_after);
+ int live_interval = (int)(ns->valid_until - ns->valid_after);
/* on average, a descriptor addr change takes .5 intervals to make it
* into a consensus, and half a liveness period to make it to
* clients. */
- penalty = (fresh_interval + live_interval) / 2;
+ penalty = (int)(fresh_interval + live_interval) / 2;
}
format_local_iso_time(tbuf, hist->start_of_run);
log_info(LD_HIST,"Router %s still seems Running, but its address appears "