projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9494cb
)
stricter type usage for time variables to avoid picky compiler warnings
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 21 Sep 2005 11:28:40 +0000
(11:28 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 21 Sep 2005 11:28:40 +0000
(11:28 +0000)
lib/tftp.c
patch
|
blob
|
history
diff --git
a/lib/tftp.c
b/lib/tftp.c
index
29c13cb
..
9d42842
100644
(file)
--- 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 */