aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-08 20:38:04 +0000
committerYang Tse <yangsita@gmail.com>2005-12-08 20:38:04 +0000
commit6a0ed81e6795f773dbb876ec83d5c22d9504077f (patch)
treea64332ef97c1e92378ebd1b6cef4f21bacd07b8d /lib
parentc94f3e818887cec11d9f22958f96ee9696fcb619 (diff)
Fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index f2cd3fb01..da250fca8 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -205,7 +205,7 @@ void tftp_set_timeouts(tftp_state_data_t *state)
else {
/* Compute drop-dead time */
- maxtime = data->set.timeout?data->set.timeout:3600;
+ maxtime = (time_t)(data->set.timeout?data->set.timeout:3600);
state->max_time = state->start_time+maxtime;
/* Set per-block timeout to 10% of total */