]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: spelling fixes
authorViktor Szakats <commit@vsz.me>
Wed, 31 Aug 2022 14:31:01 +0000 (14:31 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 31 Aug 2022 14:31:01 +0000 (14:31 +0000)
Found using codespell 2.2.1.

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

Reviewed-by: Daniel Stenberg
Closes #9403

18 files changed:
RELEASE-NOTES
docs/BINDINGS.md
include/curl/multi.h
lib/hostip.c
lib/imap.c
lib/multi.c
lib/url.c
lib/urlapi.c
lib/vauth/vauth.h
lib/vquic/msh3.c
lib/vtls/schannel.c
m4/curl-gnutls.m4
m4/xc-lt-iface.m4
m4/zz40-xc-ovr.m4
tests/data/test368
tests/data/test435
tests/libtest/lib1906.c
tests/unit/unit1655.c

index 30165420bb24ff1f0ed9117f9c3ef6cab33df75b..36cd87e3bbc54af1008431e5df1bd383513a495e 100644 (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]
index b9f68ea257129cccb299ebfe2539253146f16d01..c4a06ec783091d0242ccad10805bb36e527b2277 100644 (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
 
index 30104925b7eb4fb73a4c4ab9a4a5c1640496d6c8..2f3ec37a7685a98f59bfae180cd37cf342b99194 100644 (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.
  */
index bb94520acf5bf1dacde46f0e3bff6f47663827a0..66f1f7d4b9e0d893dcb2550140d67e276ae60555 100644 (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);
index 12ee2a47ebd7477ad064b958cce2c3ab89a051c6..ffa08bf7a403c4492fbfb3ecff7474ab4c209f56 100644 (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;
 
index 5340a0c8a5e6f0d7ea4c67e605290cfbde1fd37b..6e41fb2742c7ef114cff938216dc0a32272e5c12 100644 (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
index bfc784ff39c7475d292640449088c482ff67f054..9759f08ad2794099f637ef7026ab38d1be052702 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -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)
index dee4b5aa0983bba3a19028b941c360a8d31d9b7d..1e8046b741754cc7a997752f1527b7d6d915e352 100644 (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) {
index 1c4b5b5dc6b7005cdac77a55288fe2e667dbfbe9..ec3b7db816da927264051c4d984b7f2ab0ed2b74 100644 (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 */
index e309be9dfa72b4d05d02147e25f1328b4d42e246..dffa8a0733270d9b046a95440d0b0feb9a8fbe2b 100644 (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) {
index 32abcaa7446b4a4fdb48fdb79ec3a05200ea1134..9c138ef38a07a1451ead50f6a90d0fb51094a1bf 100644 (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 =
index 2bf67559d21361c20a5e01484db55eed5cd2faf3..d6f4a970829debdc0b593295d98041e2a9478a3c 100644 (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
index ebdcb2e78ccf966b96428accfe33b44d0cc04c16..337c9f9cdf3d5ca36d7579460100f373f4b0cc93 100644 (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 @%:@ ((((
index 30d205bfee6a5d962e5b2d4049ea52991ce575f3..3b96e5f01b03bdbe32a45d2fcac3549bc275ae64 100644 (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
index 2f13b5723a72dd45945c61ba2d27a1e76f04169f..505ce34ea9a92085c761342927ad12059be8d364 100644 (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
index eed9e29819c365082f841ab2e989633c8cc38a9b..cfcca66dc7546740d2917b1e9a70b8c8a4b1a85e 100644 (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'
index 80bb3ce64053997ac30d1722529a0dce84161903..3e237e2d4f6c3c11bb885da1c6861fcd51569f2a 100644 (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)
index 1f5a6c9610ea30eecb69c7f2e16f151c8afa29bb..a36ba8ce7cf47e5647c1347315527963601268f8 100644 (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,