fixup comments

This commit is contained in:
Daniel Stenberg 2026-03-02 13:30:53 +01:00
parent 6b3d36ebaf
commit e09d1fd25e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -340,8 +340,8 @@ void Curl_pgrsStartNow(struct Curl_easy *data)
p->ul_size_known = FALSE;
}
/* this counts how much data is delivered to the application, which
in compressed cases may differ from downloaded amount */
/* check that the 'delta' amount of bytes are okay to deliver to the
application, or return error if not. */
CURLcode Curl_pgrs_deliver_check(struct Curl_easy *data, size_t delta)
{
if(data->set.max_filesize &&
@ -350,7 +350,8 @@ CURLcode Curl_pgrs_deliver_check(struct Curl_easy *data, size_t delta)
return CURLE_OK;
}
/* the check is already done, this is okay */
/* this counts how much data is delivered to the application, which
in compressed cases may differ from downloaded amount */
void Curl_pgrs_deliver_inc(struct Curl_easy *data, size_t delta)
{
data->progress.deliver += delta;