summaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-08-31 10:17:40 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-01 10:40:42 +0200
commit1a890997a47d4d22df58b5183181685e49ed6e61 (patch)
treed6510eb7592ca21eb554c23795c12daacccf1694 /lib/file.c
parent9dda13bbac1938c13ddf0a9cc4d9dd0302ff0331 (diff)
downloadcurl-1a890997a47d4d22df58b5183181685e49ed6e61.tar.gz
all: s/int/size_t cleanup
Assisted-by: Rikard Falkeborn Closes #2922
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/file.c b/lib/file.c
index 77fcf2536..e50e98876 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -306,7 +306,7 @@ static CURLcode file_upload(struct connectdata *conn)
while(!result) {
size_t nread;
size_t nwrite;
- int readcount;
+ size_t readcount;
result = Curl_fillreadbuffer(conn, (int)data->set.buffer_size, &readcount);
if(result)
break;
@@ -314,7 +314,7 @@ static CURLcode file_upload(struct connectdata *conn)
if(readcount <= 0) /* fix questionable compare error. curlvms */
break;
- nread = (size_t)readcount;
+ nread = readcount;
/*skip bytes before resume point*/
if(data->state.resume_from) {