diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-30 14:25:16 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:06:21 -0500 |
commit | 2b4bfe62ee74b927d65923f5d07fe04f51f8779a (patch) | |
tree | 175fe8a6b2d1100f2c64d089d3cc37d780e4bd8f /src/or/entrynodes.c | |
parent | 72dc2ae319f66d3b4dec59709c28605912c6bc56 (diff) | |
download | tor-2b4bfe62ee74b927d65923f5d07fe04f51f8779a.tar.gz tor-2b4bfe62ee74b927d65923f5d07fe04f51f8779a.zip |
Fix a signed/unsigned warning on 32-bit
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 78257ca84d..ac621552ed 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -1665,7 +1665,7 @@ entry_guards_update_primary(guard_selection_t *gs) * Return the number of seconds after the last attempt at which we should * retry a guard that has been failing since <b>failing_since</b>. */ -static unsigned +static int get_retry_schedule(time_t failing_since, time_t now, int is_primary) { @@ -1712,7 +1712,7 @@ entry_guard_consider_retry(entry_guard_t *guard) return; /* No retry needed. */ const time_t now = approx_time(); - const unsigned delay = + const int delay = get_retry_schedule(guard->failing_since, now, guard->is_primary); const time_t last_attempt = guard->last_tried_to_connect; |