]> granicus.if.org Git - curl/commitdiff
added a cast to silent compiler warning with 64bit systems.
authorGunter Knauf <gk@gknw.de>
Thu, 16 Jul 2009 17:39:14 +0000 (17:39 +0000)
committerGunter Knauf <gk@gknw.de>
Thu, 16 Jul 2009 17:39:14 +0000 (17:39 +0000)
lib/ftp.c
lib/transfer.c

index d2a80e07f4746b595ddc960bf93d62757e14ed57..ebd971571bac0fde9140cda160dfda3d4e5ce5a3 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -4004,7 +4004,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
       return CURLE_OUT_OF_MEMORY;
     }
 
-    dlen -= ftpc->file?strlen(ftpc->file):0;
+    dlen -= ftpc->file?(int)strlen(ftpc->file):0;
     if((dlen == (int)strlen(ftpc->prevpath)) &&
        strnequal(path, ftpc->prevpath, dlen)) {
       infof(data, "Request has same path as previous transfer\n");
index 1905c69b90d0dec67dba8d69dd0a148dab45c097..d59b3f500f7d3023725084bf811504d915f0ff9c 100644 (file)
@@ -244,7 +244,7 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
       data->req.upload_done = TRUE;
     }
 
-    nread+=strlen(endofline_native); /* for the added end of line */
+    nread+=(int)strlen(endofline_native); /* for the added end of line */
   }
 #ifdef CURL_DOES_CONVERSIONS
   else if((data->set.prefer_ascii) && (!sending_http_headers)) {