mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
stricter type usage for time variables to avoid picky compiler warnings
This commit is contained in:
parent
b9494cb0d6
commit
bd5a622400
@ -186,12 +186,12 @@ void tftp_set_timeouts(tftp_state_data_t *state)
|
|||||||
{
|
{
|
||||||
|
|
||||||
struct SessionHandle *data = state->conn->data;
|
struct SessionHandle *data = state->conn->data;
|
||||||
unsigned long maxtime, timeout;
|
time_t maxtime, timeout;
|
||||||
|
|
||||||
time(&state->start_time);
|
time(&state->start_time);
|
||||||
if(state->state == TFTP_STATE_START) {
|
if(state->state == TFTP_STATE_START) {
|
||||||
/* Compute drop-dead time */
|
/* Compute drop-dead time */
|
||||||
maxtime = data->set.connecttimeout?data->set.connecttimeout:30;
|
maxtime = (time_t)(data->set.connecttimeout?data->set.connecttimeout:30);
|
||||||
state->max_time = state->start_time+maxtime;
|
state->max_time = state->start_time+maxtime;
|
||||||
|
|
||||||
/* Set per-block timeout to total */
|
/* Set per-block timeout to total */
|
||||||
|
Loading…
Reference in New Issue
Block a user