misc: spelling fixes

Found using codespell 2.2.1.

Also delete the redundant protocol designator from an archive.org URL.

Reviewed-by: Daniel Stenberg
Closes #9403
This commit is contained in:
Viktor Szakats 2022-08-31 14:31:01 +00:00
parent f2daef6ad4
commit c9061f242b
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
18 changed files with 26 additions and 24 deletions

View File

@ -99,7 +99,7 @@ This release includes the following bugfixes:
o hostip: resolve *.localhost to 127.0.0.1/::1 [127]
o HTTP3.md: update to msh3 v0.4.0 [126]
o http: typecast the httpreq assignment to avoid icc compiler warning [76]
o http_aws_sigv4.c: remove two unusued includes [36]
o http_aws_sigv4.c: remove two unused includes [36]
o http_chunks: remove an assign + typecast [82]
o hyper: customize test1274 to how hyper unfolds headers [131]
o hyper: enable obs-folded multiline headers [101]
@ -145,7 +145,7 @@ This release includes the following bugfixes:
o sendf: fix paused header writes since after the header API [89]
o sendf: make Curl_debug a void function [81]
o sendf: skip storing HTTP headers if HTTP disabled [73]
o sendf: store the header type in an usigned char to avoid icc warnings [79]
o sendf: store the header type in an unsigned char to avoid icc warnings [79]
o splay: avoid using -1 in unsigned variable [78]
o test3026: add support for Windows using native Win32 threads [65]
o test3026: require 'threadsafe' [56]

View File

@ -119,7 +119,7 @@ Ruby: [curb](https://github.com/taf2/curb) written by Ross Bamford,
[SP-Forth](https://sourceforge.net/p/spf/spf/ci/master/tree/devel/~ac/lib/lin/curl/) Written by Andrey Cherezov
[SPL](https://web.archive.org/web/20210203022158/http://www.clifford.at/spl/spldoc/curl.html) Written by Clifford Wolf
[SPL](https://web.archive.org/web/20210203022158/www.clifford.at/spl/spldoc/curl.html) Written by Clifford Wolf
[Tcl](https://web.archive.org/web/20160826011806/mirror.yellow5.com/tclcurl/) Tclcurl by Andrés García

View File

@ -124,7 +124,7 @@ struct curl_waitfd {
/*
* Name: curl_multi_init()
*
* Desc: inititalize multi-style curl usage
* Desc: initialize multi-style curl usage
*
* Returns: a new CURLM handle to use in all 'curl_multi' functions.
*/

View File

@ -584,7 +584,7 @@ bool Curl_host_is_ipnum(const char *hostname)
}
/* return TRUE if 'part' is a case insentive tail of 'full' */
/* return TRUE if 'part' is a case insensitive tail of 'full' */
static bool tailmatch(const char *full, const char *part)
{
size_t plen = strlen(part);

View File

@ -1886,8 +1886,8 @@ static char *imap_atom(const char *str, bool escape_only)
*/
static bool imap_is_bchar(char ch)
{
/* Peforming the alnum check with this macro is faster because of ASCII
artihmetic */
/* Performing the alnum check with this macro is faster because of ASCII
arithmetic */
if(ISALNUM(ch))
return true;

View File

@ -851,7 +851,7 @@ CURLMcode curl_multi_remove_handle(struct Curl_multi *multi,
Curl_detach_connection(data);
if(data->set.connect_only && !data->multi_easy) {
/* This removes a handle that was part the multi inteface that used
/* This removes a handle that was part the multi interface that used
CONNECT_ONLY, that connection is now left alive but since this handle
has bits.close set nothing can use that transfer anymore and it is
forbidden from reuse. And this easy handle cannot find the connection

View File

@ -955,14 +955,16 @@ socks_proxy_info_matches(const struct proxy_info *data,
see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1 */
if(!data->user != !needle->user)
return FALSE;
/* curl_strequal does a case insentive comparison, so do not use it here! */
/* curl_strequal does a case insensitive comparison,
so do not use it here! */
if(data->user &&
needle->user &&
strcmp(data->user, needle->user) != 0)
return FALSE;
if(!data->passwd != !needle->passwd)
return FALSE;
/* curl_strequal does a case insentive comparison, so do not use it here! */
/* curl_strequal does a case insensitive comparison,
so do not use it here! */
if(data->passwd &&
needle->passwd &&
strcmp(data->passwd, needle->passwd) != 0)

View File

@ -1675,7 +1675,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
if(appendquery) {
/* Append the string onto the old query. Add a '&' separator if none is
present at the end of the exsting query already */
present at the end of the existing query already */
size_t querylen = u->query ? strlen(u->query) : 0;
bool addamperand = querylen && (u->query[querylen -1] != '&');
if(querylen) {

View File

@ -224,7 +224,7 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
CURLcode Curl_auth_create_spnego_message(struct negotiatedata *nego,
char **outptr, size_t *outlen);
/* This is used to clean up the SPNEGO specifiec data */
/* This is used to clean up the SPNEGO specific data */
void Curl_auth_cleanup_spnego(struct negotiatedata *nego);
#endif /* USE_SPNEGO */

View File

@ -114,7 +114,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
socklen_t addrlen)
{
struct quicsocket *qs = &conn->hequic[sockindex];
bool unsecure = !conn->ssl_config.verifypeer;
bool insecure = !conn->ssl_config.verifypeer;
memset(qs, 0, sizeof(*qs));
(void)sockfd;
@ -132,7 +132,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
qs->conn = MsH3ConnectionOpen(qs->api,
conn->host.name,
(uint16_t)conn->remote_port,
unsecure);
insecure);
if(!qs->conn) {
failf(data, "can't create msh3 connection");
if(qs->api) {

View File

@ -793,7 +793,7 @@ schannel_acquire_credential_handle(struct Curl_easy *data,
int crypto_settings_idx = 0;
/* If TLS 1.3 ciphers are explictly listed, then
/* If TLS 1.3 ciphers are explicitly listed, then
* disable all the ciphers and re-enable which
* ciphers the user has provided.
*/
@ -913,7 +913,7 @@ schannel_acquire_credential_handle(struct Curl_easy *data,
blocked_gcm_modes[0].MaximumLength = sizeof(BCRYPT_CHAIN_MODE_GCM);
blocked_gcm_modes[0].Buffer = (PWSTR)BCRYPT_CHAIN_MODE_GCM;
/* if only one is disabled, then explictly disable the
/* if only one is disabled, then explicitly disable the
digest cipher suite (sha384 or sha256) */
if(disable_aes_gcm_sha384 != disable_aes_gcm_sha256) {
crypto_settings[crypto_settings_idx].eAlgorithmUsage =

View File

@ -39,7 +39,7 @@ if test "x$OPT_GNUTLS" != xno; then
addcflags=""
if test "x$OPT_GNUTLS" = "xyes"; then
dnl this is with no partiular path given
dnl this is with no particular path given
CURL_CHECK_PKGCONFIG(gnutls)
if test "$PKGCONFIG" != "no" ; then

View File

@ -319,7 +319,7 @@ dnl xc_lt_build_static_with_pic
m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
[dnl
#
# Find out whether libtool libraries would be built wit PIC
# Find out whether libtool libraries would be built with PIC
#
case "x$pic_mode" in @%:@ ((((

View File

@ -360,7 +360,7 @@ dnl and stores the result in 'PATH_SEPARATOR', unless
dnl the user has already set it with a non-empty value.
dnl
dnl This path separator is the symbol used to separate
dnl or diferentiate paths inside the 'PATH' environment
dnl or differentiate paths inside the 'PATH' environment
dnl variable.
dnl
dnl Non-empty user provided 'PATH_SEPARATOR' always
@ -594,7 +594,7 @@ dnl and stores the result in 'PATH_SEPARATOR', unless
dnl the user has already set it with a non-empty value.
dnl
dnl This path separator is the symbol used to separate
dnl or diferentiate paths inside the 'PATH' environment
dnl or differentiate paths inside the 'PATH' environment
dnl variable.
dnl
dnl Non-empty user provided 'PATH_SEPARATOR' always

View File

@ -27,7 +27,7 @@ Connection: close
http
</server>
<name>
Appened dash if -r range specified without one
Append dash if -r range specified without one
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -r 4

View File

@ -23,7 +23,7 @@ Content-Length: 0
http
</server>
<name>
verify -w local/remote port+ip after connecton re-use
verify -w local/remote port+ip after connection re-use
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w 'local port == %{local_port}\nlocal ip == %{local_ip}\nremote_ip == %{remote_ip}\nremote_port == %{remote_port}\n'

View File

@ -39,7 +39,7 @@ int test(char *URL)
curl_easy_setopt(curl, CURLOPT_CURLU, curlu);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error_buffer);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
/* set a port number that makes this reqeuest fail */
/* set a port number that makes this request fail */
curl_easy_setopt(curl, CURLOPT_PORT, 1L);
curl_code = curl_easy_perform(curl);
if(!curl_code)

View File

@ -105,7 +105,7 @@ do {
struct demo victim;
DOHcode d;
victim.canary1 = 87; /* magic numbers, arbritrarily picked */
victim.canary1 = 87; /* magic numbers, arbitrarily picked */
victim.canary2 = 35;
victim.canary3 = 41;
d = doh_encode(name, DNS_TYPE_A, victim.dohbuffer,