aboutsummaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-21 11:28:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-21 11:28:40 +0000
commitbd5a622400e18d84eedc3094beea033c0334d940 (patch)
treeba4db1f9c1dc451b50e0b9bf195a34dc787e27f2 /lib/tftp.c
parentb9494cb0d6ce76adb23bbc6006c09bdff63b455f (diff)
stricter type usage for time variables to avoid picky compiler warnings
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 29c13cbd6..9d4284259 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -186,12 +186,12 @@ void tftp_set_timeouts(tftp_state_data_t *state)
{
struct SessionHandle *data = state->conn->data;
- unsigned long maxtime, timeout;
+ time_t maxtime, timeout;
time(&state->start_time);
if(state->state == TFTP_STATE_START) {
/* 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;
/* Set per-block timeout to total */