diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2009-02-14 13:43:18 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2009-02-14 13:43:18 +0000 |
commit | 8925527fef2c61d911be70f059cf5e955331baeb (patch) | |
tree | 879b15b5f9510540315e7ff141d6ea4f3566055e /lib | |
parent | 8cdc220bc0392214507f86a6a6ca5d32bcd9bd11 (diff) |
In MSVC9 'time_t' is a 64-bit quantity. This causes a truncation warning
when an 'int' is assigned to a 'time_t' variable. Hence redefine 'retry_time'
and 'retry_max' to 'time_t'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 976e5044c..67ec5576d 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -140,8 +140,8 @@ typedef struct tftp_state_data { struct connectdata *conn; curl_socket_t sockfd; int retries; - int retry_time; - int retry_max; + time_t retry_time; + time_t retry_max; time_t start_time; time_t max_time; unsigned short block; @@ -973,7 +973,7 @@ static CURLcode tftp_do(struct connectdata *conn, bool *done) /* Wait until ready to read or timeout occurs */ rc=Curl_socket_ready(state->sockfd, CURL_SOCKET_BAD, - state->retry_time * 1000); + (int)(state->retry_time * 1000)); if(rc == -1) { /* bail out */ |