]> granicus.if.org Git - curl/commitdiff
Fix compiler warning
authorYang Tse <yangsita@gmail.com>
Thu, 8 Dec 2005 20:38:04 +0000 (20:38 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 8 Dec 2005 20:38:04 +0000 (20:38 +0000)
lib/tftp.c

index f2cd3fb01202c3fcc2caf74855a60ea1d0064e58..da250fca871c8efc6959f09905d619d406cda885 100644 (file)
@@ -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 */