mirror of
https://github.com/curl/curl.git
synced 2026-08-05 22:26:14 +03:00
misc: fix spelling mistakes
Reported-by: musvaage on github Fixes #11171 Closes #11172
This commit is contained in:
parent
1561d06752
commit
127eb0d83a
28 changed files with 41 additions and 42 deletions
|
|
@ -255,7 +255,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
|
|||
int rc = nghttp2_option_new(&o);
|
||||
if(rc)
|
||||
return rc;
|
||||
/* We handle window updates ourself to enfore buffer limits */
|
||||
/* We handle window updates ourself to enforce buffer limits */
|
||||
nghttp2_option_set_no_auto_window_update(o, 1);
|
||||
#if NGHTTP2_VERSION_NUM >= 0x013200
|
||||
/* with 1.50.0 */
|
||||
|
|
|
|||
|
|
@ -747,7 +747,7 @@ CURLcode Curl_socket_connect_result(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
/* We have a recv buffer to enhance reads with len < NW_SMALL_READS.
|
||||
* This happens often on TLS connections where the TLS implemenation
|
||||
* This happens often on TLS connections where the TLS implementation
|
||||
* tries to read the head of a TLS record, determine the length of the
|
||||
* full record and then make a subsequent read for that.
|
||||
* On large reads, we will not fill the buffer to avoid the double copy. */
|
||||
|
|
|
|||
|
|
@ -1721,7 +1721,7 @@ static CURLcode cookie_output(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
/*
|
||||
* If we reach here we have successfully written a cookie file so theree is
|
||||
* If we reach here we have successfully written a cookie file so there is
|
||||
* no need to inspect the error, any error case should have jumped into the
|
||||
* error block below.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ Curl_he2ai(const struct hostent *he, int port)
|
|||
|
||||
for(i = 0; (curr = he->h_addr_list[i]) != NULL; i++) {
|
||||
size_t ss_size;
|
||||
size_t namelen = strlen(he->h_name) + 1; /* include null-terminatior */
|
||||
size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */
|
||||
#ifdef ENABLE_IPV6
|
||||
if(he->h_addrtype == AF_INET6)
|
||||
ss_size = sizeof(struct sockaddr_in6);
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
/* spare chunks we keep for a full window */
|
||||
#define H2_STREAM_POOL_SPARES (H2_STREAM_WINDOW_SIZE / H2_CHUNK_SIZE)
|
||||
|
||||
/* We need to accomodate the max number of streams with their window
|
||||
/* We need to accommodate the max number of streams with their window
|
||||
* sizes on the overall connection. Streams might become PAUSED which
|
||||
* will block their received QUOTA in the connection window. And if we
|
||||
* run out of space, the server is blocked from sending us any data.
|
||||
|
|
@ -327,7 +327,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
|
|||
int rc = nghttp2_option_new(&o);
|
||||
if(rc)
|
||||
return rc;
|
||||
/* We handle window updates ourself to enfore buffer limits */
|
||||
/* We handle window updates ourself to enforce buffer limits */
|
||||
nghttp2_option_set_no_auto_window_update(o, 1);
|
||||
#if NGHTTP2_VERSION_NUM >= 0x013200
|
||||
/* with 1.50.0 */
|
||||
|
|
|
|||
|
|
@ -651,7 +651,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname,
|
|||
*/
|
||||
|
||||
#define HOST_ERROR -1 /* out of memory */
|
||||
#define HOST_BAD -2 /* bad IPv4 adddress */
|
||||
#define HOST_BAD -2 /* bad IPv4 address */
|
||||
|
||||
#define HOST_NAME 1
|
||||
#define HOST_IPV4 2
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ bool Curl_auth_is_spnego_supported(void);
|
|||
message */
|
||||
CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
|
||||
const char *user,
|
||||
const char *passwood,
|
||||
const char *password,
|
||||
const char *service,
|
||||
const char *host,
|
||||
const char *chlg64,
|
||||
|
|
|
|||
|
|
@ -1443,7 +1443,7 @@ static int cb_h3_acked_req_body(nghttp3_conn *conn, int64_t stream_id,
|
|||
(void)cf;
|
||||
if(!stream)
|
||||
return 0;
|
||||
/* The server ackknowledged `datalen` of bytes from our request body.
|
||||
/* The server acknowledged `datalen` of bytes from our request body.
|
||||
* This is a delta. We have kept this data in `sendbuf` for
|
||||
* re-transmissions and can free it now. */
|
||||
if(datalen >= (uint64_t)stream->sendbuf_len_in_flight)
|
||||
|
|
|
|||
|
|
@ -2719,7 +2719,7 @@ check_handshake:
|
|||
failf(data, "Peer rejected unexpected message");
|
||||
break;
|
||||
#if CURL_BUILD_MAC_10_11 || CURL_BUILD_IOS_9
|
||||
/* Treaing non-fatal error as fatal like before */
|
||||
/* Treating non-fatal error as fatal like before */
|
||||
case errSSLClientHelloReceived:
|
||||
failf(data, "A non-fatal result for providing a server name "
|
||||
"indication");
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ static const struct Curl_OID OIDtable[] = {
|
|||
* It is intended to support certificate information gathering for SSL backends
|
||||
* that offer a mean to get certificates as a whole, but do not supply
|
||||
* entry points to get particular certificate sub-fields.
|
||||
* Please note there is no pretention here to rewrite a full SSL library.
|
||||
* Please note there is no pretension here to rewrite a full SSL library.
|
||||
*/
|
||||
|
||||
static const char *getASN1Element(struct Curl_asn1Element *elem,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue