summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/sendf.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-02 13:31:52 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-02 13:31:52 (GMT)
commit1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6 (patch)
treee6d1ed87ca626d0945df3ad76d9185e02f6aae7f /Source/CTest/Curl/sendf.c
parent7cefbad8dc4f6aa73781a98e758679b5c5dc4fbe (diff)
downloadCMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.zip
CMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.tar.gz
CMake-1bb8d8109e7a51a30c16e5dc1481bf83ba42eda6.tar.bz2
ERR: Remove warnings on Visual Studio 7
Diffstat (limited to 'Source/CTest/Curl/sendf.c')
-rw-r--r--Source/CTest/Curl/sendf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/Curl/sendf.c b/Source/CTest/Curl/sendf.c
index 9c9f14e..01cfb23 100644
--- a/Source/CTest/Curl/sendf.c
+++ b/Source/CTest/Curl/sendf.c
@@ -155,7 +155,7 @@ void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
data->state.errorbuf = TRUE; /* wrote error string */
if(data->set.verbose) {
- int len = strlen(data->set.errorbuffer);
+ int len = (int)strlen(data->set.errorbuffer);
bool doneit=FALSE;
if(len < CURL_ERROR_SIZE) {
doneit = TRUE;
@@ -189,7 +189,7 @@ CURLcode Curl_sendf(int sockfd, struct connectdata *conn,
return CURLE_OUT_OF_MEMORY; /* failure */
bytes_written=0;
- write_len = strlen(s);
+ write_len = (int)strlen(s);
sptr = s;
do {
@@ -265,7 +265,7 @@ CURLcode Curl_write(struct connectdata *conn, int sockfd,
else
#endif /* KRB4 */
{
- bytes_written = swrite(sockfd, mem, len);
+ bytes_written = (int)swrite(sockfd, mem, (int)len);
}
if(-1 == bytes_written) {
#ifdef WIN32
@@ -374,7 +374,7 @@ int Curl_read(struct connectdata *conn,
nread = Curl_sec_read(conn, sockfd, buf, buffersize);
else
#endif
- nread = sread (sockfd, buf, buffersize);
+ nread = sread (sockfd, buf, (int)buffersize);
if(-1 == nread) {
#ifdef WIN32