mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:13:33 +03:00
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:
parent
032b15c434
commit
d229055549
116 changed files with 184 additions and 185 deletions
|
|
@ -1404,7 +1404,7 @@ static void cb_ngtcp2_rand(uint8_t *dest, size_t destlen,
|
|||
result = Curl_rand(NULL, dest, destlen);
|
||||
if(result) {
|
||||
/* cb_rand is only used for non-cryptographic context. If Curl_rand
|
||||
failed, just fill 0 and call it *random*. */
|
||||
failed, fill 0 and call it *random*. */
|
||||
memset(dest, 0, destlen);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@
|
|||
/* Size of time_t in number of bytes */
|
||||
#define SIZEOF_TIME_T 4
|
||||
|
||||
/* Define to 1 if all of the C89 standard headers exist (not just the ones
|
||||
/* Define to 1 if all of the C89 standard headers exist (not only the ones
|
||||
required in a freestanding environment). This macro is provided for
|
||||
backward compatibility; new code need not use it. */
|
||||
#define STDC_HEADERS 1
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ CURLcode Curl_req_send(struct Curl_easy *data, struct dynbuf *req,
|
|||
blen = curlx_dyn_len(req);
|
||||
/* if the sendbuf is empty and the request without body and
|
||||
* the length to send fits info a sendbuf chunk, we send it directly.
|
||||
* If `blen` is larger then `chunk_size`, we can not. Because we
|
||||
* If `blen` is larger than `chunk_size`, we can not. Because we
|
||||
* might have to retry a blocked send later from sendbuf and that
|
||||
* would result in retry sends with a shrunken length. That is trouble. */
|
||||
if(Curl_bufq_is_empty(&data->req.sendbuf) &&
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ curl_off_t Curl_creader_client_length(struct Curl_easy *data);
|
|||
* values will be ignored.
|
||||
* @return CURLE_OK if offset could be set
|
||||
* CURLE_READ_ERROR if not supported by reader or seek/read failed
|
||||
* of offset larger then total length
|
||||
* of offset larger than total length
|
||||
* CURLE_PARTIAL_FILE if offset led to 0 total length
|
||||
*/
|
||||
CURLcode Curl_creader_resume_from(struct Curl_easy *data, curl_off_t offset);
|
||||
|
|
|
|||
|
|
@ -2774,7 +2774,7 @@ static CURLcode setopt_offt(struct Curl_easy *data, CURLoption option,
|
|||
break;
|
||||
case CURLOPT_MAX_SEND_SPEED_LARGE:
|
||||
/*
|
||||
* When transfer uploads are faster then CURLOPT_MAX_SEND_SPEED_LARGE
|
||||
* When transfer uploads are faster than CURLOPT_MAX_SEND_SPEED_LARGE
|
||||
* bytes per second the transfer is throttled..
|
||||
*/
|
||||
if(offt < 0)
|
||||
|
|
|
|||
|
|
@ -980,7 +980,7 @@ static bool url_match_destination(struct connectdata *conn,
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
/* Scheme mismatch is acceptable, just compare hostname/port */
|
||||
/* Scheme mismatch is acceptable, compare hostname/port */
|
||||
return Curl_peer_same_destination(m->needle->origin, conn->origin);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname,
|
|||
/* more than one trailing dot is not allowed */
|
||||
return CURLUE_BAD_HOSTNAME;
|
||||
else if((hlen == 1) && (hostname[0] == '.'))
|
||||
/* just a single dot is not allowed */
|
||||
/* a single dot alone is not allowed */
|
||||
return CURLUE_BAD_HOSTNAME;
|
||||
}
|
||||
return CURLUE_OK;
|
||||
|
|
|
|||
|
|
@ -1697,7 +1697,7 @@ static CURLcode h3_stream_open(struct Curl_cfilter *cf,
|
|||
stream->upload_left = -1; /* unknown */
|
||||
break;
|
||||
default:
|
||||
/* there is not request body */
|
||||
/* there is no request body */
|
||||
stream->upload_left = 0; /* no request body */
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue