summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2007-03-18 20:18:50 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2007-03-18 20:18:50 (GMT)
commita58b0d68568a8fdd07dec59576f40da5dffab192 (patch)
tree64a3e665158766a97a45ecc00b610dea11019d67 /Utilities/cmcurl
parentfaa2d53e3fb920c9e33d97d4eabf8f5a921e95d6 (diff)
downloadCMake-a58b0d68568a8fdd07dec59576f40da5dffab192.zip
CMake-a58b0d68568a8fdd07dec59576f40da5dffab192.tar.gz
CMake-a58b0d68568a8fdd07dec59576f40da5dffab192.tar.bz2
COMP: Remove some warnings
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/tftp.c8
-rw-r--r--Utilities/cmcurl/transfer.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/Utilities/cmcurl/tftp.c b/Utilities/cmcurl/tftp.c
index 9ec1a15..0e2e7ab 100644
--- a/Utilities/cmcurl/tftp.c
+++ b/Utilities/cmcurl/tftp.c
@@ -184,10 +184,10 @@ void tftp_set_timeouts(tftp_state_data_t *state)
timeout = maxtime ;
/* Average restart after 5 seconds */
- state->retry_max = timeout/5;
+ state->retry_max = (int)(timeout/5);
/* Compute the re-start interval to suit the timeout */
- state->retry_time = timeout/state->retry_max;
+ state->retry_time = (int)(timeout/state->retry_max);
if(state->retry_time<1)
state->retry_time=1;
@@ -202,7 +202,7 @@ void tftp_set_timeouts(tftp_state_data_t *state)
timeout = maxtime/10 ;
/* Average reposting an ACK after 15 seconds */
- state->retry_max = timeout/15;
+ state->retry_max = (int)(timeout/15);
}
/* But bound the total number */
if(state->retry_max<3)
@@ -212,7 +212,7 @@ void tftp_set_timeouts(tftp_state_data_t *state)
state->retry_max=50;
/* Compute the re-ACK interval to suit the timeout */
- state->retry_time = timeout/state->retry_max;
+ state->retry_time = (int)(timeout/state->retry_max);
if(state->retry_time<1)
state->retry_time=1;
diff --git a/Utilities/cmcurl/transfer.c b/Utilities/cmcurl/transfer.c
index bff16b4..5cb3361 100644
--- a/Utilities/cmcurl/transfer.c
+++ b/Utilities/cmcurl/transfer.c
@@ -1244,7 +1244,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
(k->bytecount + nread >= k->maxdownload)) {
/* The 'excess' amount below can't be more than BUFSIZE which
always will fit in a size_t */
- size_t excess = k->bytecount + nread - k->maxdownload;
+ size_t excess = (size_t)(k->bytecount + nread - k->maxdownload);
if (excess > 0 && !k->ignorebody) {
infof(data,
"Rewinding stream by : %d"