tidy-up: miscellaneous

- drop more uses of the word "just". (not enforced here)
- drop some uses of the "will" word.
- "then" -> "than".
- tests/http/testenv/curl.py: fix copy-paste typo in error message.
- pytest: replace `shutdownh` with `shutdown` in test names.
  Spotted by GitHub Code Quality.
- comment typos.
- whitespace and newlines fixes.

Closes #21830
This commit is contained in:
Viktor Szakats 2026-05-28 23:50:52 +02:00
parent 032b15c434
commit d229055549
No known key found for this signature in database
116 changed files with 184 additions and 185 deletions

View file

@ -539,11 +539,11 @@ struct sizeunit {
static const struct sizeunit *getunit(char unit)
{
static const struct sizeunit list[] = {
{'p', (curl_off_t)1125899906842624, 16 }, /* Peta */
{'t', (curl_off_t)1099511627776, 13 }, /* Tera */
{'g', 1073741824, 10 }, /* Giga */
{'m', 1048576, 7 }, /* Mega */
{'k', 1024, 4 }, /* Kilo */
{ 'p', (curl_off_t)1125899906842624, 16 }, /* Peta */
{ 't', (curl_off_t)1099511627776, 13 }, /* Tera */
{ 'g', 1073741824, 10 }, /* Giga */
{ 'm', 1048576, 7 }, /* Mega */
{ 'k', 1024, 4 }, /* Kilo */
};
size_t i;
@ -1627,12 +1627,12 @@ static ParameterError parse_time_cond(struct OperationConfig *config,
config->timecond = CURL_TIMECOND_IFMODSINCE;
break;
case '-':
/* If-Unmodified-Since: (section 14.24 in RFC2068) */
/* If-Unmodified-Since: (section 14.24 in RFC2068) */
config->timecond = CURL_TIMECOND_IFUNMODSINCE;
nextarg++;
break;
case '=':
/* Last-Modified: (section 14.29 in RFC2068) */
/* Last-Modified: (section 14.29 in RFC2068) */
config->timecond = CURL_TIMECOND_LASTMOD;
nextarg++;
break;

View file

@ -722,6 +722,7 @@ static CURLcode post_close_output(struct per_transfer *per,
}
return result;
}
/*
* Call this after a transfer has completed.
*/