summaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-18 11:56:50 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-19 09:14:51 +0100
commita304051620b92e12b6b1b4e19edc57b34ea332b6 (patch)
tree6611cb1f943e6eecebedd4fa19ec5d1716a38ccc /lib/file.c
parentbbe3aa9f881fa27fe828e3c9a36d6831f254a3ee (diff)
downloadcurl-a304051620b92e12b6b1b4e19edc57b34ea332b6.tar.gz
lib: more conn->data cleanups
Closes #6479
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/file.c b/lib/file.c
index 5156c7add..509e4836f 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -338,12 +338,12 @@ static CURLcode file_upload(struct Curl_easy *data)
Curl_pgrsSetUploadCounter(data, bytecount);
- if(Curl_pgrsUpdate(data->conn))
+ if(Curl_pgrsUpdate(data))
result = CURLE_ABORTED_BY_CALLBACK;
else
result = Curl_speedcheck(data, Curl_now());
}
- if(!result && Curl_pgrsUpdate(data->conn))
+ if(!result && Curl_pgrsUpdate(data))
result = CURLE_ABORTED_BY_CALLBACK;
close(fd);
@@ -527,12 +527,12 @@ static CURLcode file_do(struct Curl_easy *data, bool *done)
Curl_pgrsSetDownloadCounter(data, bytecount);
- if(Curl_pgrsUpdate(conn))
+ if(Curl_pgrsUpdate(data))
result = CURLE_ABORTED_BY_CALLBACK;
else
result = Curl_speedcheck(data, Curl_now());
}
- if(Curl_pgrsUpdate(conn))
+ if(Curl_pgrsUpdate(data))
result = CURLE_ABORTED_BY_CALLBACK;
return result;