Fix build warnings on OSX 10.5.8

This commit is contained in:
Nick Mathewson 2009-09-20 23:01:43 -04:00
parent 134266b984
commit 93b33e15ab

View File

@ -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;
}
}