mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix build warnings on OSX 10.5.8
This commit is contained in:
parent
134266b984
commit
93b33e15ab
@ -3514,10 +3514,10 @@ test_circuit_timeout(void)
|
||||
test_assert(circuit_build_times_network_check_live(&final));
|
||||
|
||||
if (circuit_build_times_add_timeout(&estimate, 0,
|
||||
approx_time()-estimate.timeout_ms/1000.0-1))
|
||||
(time_t)(approx_time()-estimate.timeout_ms/1000.0-1)))
|
||||
estimate.have_computed_timeout = 1;
|
||||
if (circuit_build_times_add_timeout(&final, 0,
|
||||
approx_time()-final.timeout_ms/1000.0-1))
|
||||
(time_t)(approx_time()-final.timeout_ms/1000.0-1)))
|
||||
final.have_computed_timeout = 1;
|
||||
}
|
||||
|
||||
@ -3526,12 +3526,12 @@ test_circuit_timeout(void)
|
||||
|
||||
for ( ; i < NETWORK_NONLIVE_DISCARD_COUNT; i++) {
|
||||
if (circuit_build_times_add_timeout(&estimate, 0,
|
||||
approx_time()-estimate.timeout_ms/1000.0-1))
|
||||
(time_t)(approx_time()-estimate.timeout_ms/1000.0-1)))
|
||||
estimate.have_computed_timeout = 1;
|
||||
|
||||
if (i < NETWORK_NONLIVE_DISCARD_COUNT-1) {
|
||||
if (circuit_build_times_add_timeout(&final, 0,
|
||||
approx_time()-final.timeout_ms/1000.0-1))
|
||||
(time_t)(approx_time()-final.timeout_ms/1000.0-1)))
|
||||
final.have_computed_timeout = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user