]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: fix typos
authorPatrick Stoeckle <patrick.stoeckle@siemens.com>
Fri, 11 Jul 2025 18:59:53 +0000 (20:59 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 12 Jul 2025 06:59:44 +0000 (08:59 +0200)
Just fixing some typos using: https://github.com/crate-ci/typos

Closes #17904

21 files changed:
docs/CURLDOWN.md
docs/KNOWN_BUGS
docs/cmdline-opts/json.md
lib/cfilters.h
lib/conncache.h
lib/cookie.c
lib/llist.h
lib/multi.c
lib/pingpong.h
lib/smtp.c
lib/vquic/curl_ngtcp2.c
lib/vtls/x509asn1.c
lib/ws.c
scripts/cd2nroff
scripts/managen
tests/http/test_31_vsftpds.py
tests/http/test_32_ftps_vsftpd.py
tests/libtest/lib2405.c
tests/unit/unit1658.c
tests/unit/unit3211.c
tests/unit/unit3214.c

index 378ac6c5a15cabc2e605430ada4cf2c07d884cd5..6726b3946c0981a895a0c2f177dea6e11903d401 100644 (file)
@@ -108,7 +108,7 @@ syntax:
 
 ~~~
     # NAME
-    a page - this is a page descriving something
+    a page - this is a page describing something
 
     # SYNOPSIS
     ~~~c
index 62e9eafd15a361f9f7ed37f5b51baf750f13108d..ec5c6739125bbd63039821c9cbd0183185a76e3a 100644 (file)
@@ -455,7 +455,7 @@ problems may have been fixed or changed somewhat since this was written.
 10.2 Does not acknowledge getaddrinfo sorting policy
 
  Even if a user edits /etc/gai.conf to prefer IPv4, curl still prefers and
- tries IPv6 adresses first.
+ tries IPv6 addresses first.
 
  https://github.com/curl/curl/issues/16718
 
index c64a9ab124af225b4bca8786f272905402f50e41..3f1a9a1b749e130b6d5c17bf7e946d0dd93ced94 100644 (file)
@@ -13,8 +13,8 @@ See-also:
   - data-binary
   - data-raw
 Example:
-  - --json '{ "drink": "coffe" }' $URL
-  - --json '{ "drink":' --json ' "coffe" }' $URL
+  - --json '{ "drink": "coffee" }' $URL
+  - --json '{ "drink":' --json ' "coffee" }' $URL
   - --json @prepared $URL
   - --json @- $URL < json.txt
 ---
index 1487ff615f92b62d5dbd818b8cd7ea5f6304cbb0..b28ca998e007f5801734795a891b7857d651ac6d 100644 (file)
@@ -457,7 +457,7 @@ Curl_conn_get_remote_addr(struct Curl_easy *data, int sockindex);
 void Curl_conn_forget_socket(struct Curl_easy *data, int sockindex);
 
 /**
- * Adjust the pollset for the filter chain startgin at `cf`.
+ * Adjust the pollset for the filter chain starting at `cf`.
  */
 void Curl_conn_cf_adjust_pollset(struct Curl_cfilter *cf,
                                  struct Curl_easy *data,
index 1314b65c60763c0a9061242dd435063b74445e32..ac07111a7d77ea8b182a1b755f2379d7e3e0ee76 100644 (file)
@@ -106,7 +106,7 @@ typedef bool Curl_cpool_done_match_cb(bool result, void *userdata);
  * Find a connection in the pool matching `destination`.
  * All callbacks are invoked while the pool's lock is held.
  * @param data        current transfer
- * @param destination match agaonst `conn->destination` in pool
+ * @param destination match against `conn->destination` in pool
  * @param conn_cb     must be present, called for each connection in the
  *                    bundle until it returns TRUE
  * @return combined result of last conn_db and result_cb or FALSE if no
index 5a3ccdbe078892354ce5f7d7ecc577555deb9691..9221871e4b430ccecae612354be371546bebc67c 100644 (file)
@@ -917,7 +917,7 @@ is_public_suffix(struct Curl_easy *data,
         Curl_psl_release(data);
       }
       else
-        infof(data, "libpsl problem, rejecting cookie for satety");
+        infof(data, "libpsl problem, rejecting cookie for safety");
     }
 
     if(!acceptable) {
index a865b38f05e6ed8734e0a7d590296f96bfa7f2bd..0a2bc9a62f477bd321642e9b8c77a28fe8dcbce2 100644 (file)
@@ -75,7 +75,7 @@ size_t Curl_llist_count(struct Curl_llist *list);
 void *Curl_node_elem(struct Curl_llist_node *n);
 
 /* Remove the node from the list and return the custom data
- * from a Curl_llist_node. Will NOT incoke a registered `dtor`. */
+ * from a Curl_llist_node. Will NOT invoke a registered `dtor`. */
 void *Curl_node_take_elem(struct Curl_llist_node *);
 
 /* Curl_node_next() returns the next element in a list from a given
index a1679c7b769a622b8934840cb357ea027f6ea741..b3a7938e33fe699b0c1a91ec26643fcca07ed04f 100644 (file)
@@ -3042,7 +3042,7 @@ static CURLMcode multi_run_dirty(struct multi_run_ctx *mrc)
           continue;
         }
         else if(!Curl_uint_bset_contains(&multi->process, mid)) {
-          /* We are no longer proecessing this transfer */
+          /* We are no longer processing this transfer */
           Curl_uint_bset_remove(&multi->dirty, mid);
           continue;
         }
@@ -3263,7 +3263,7 @@ static bool multi_has_dirties(struct Curl_multi *multi)
       if(data) {
         if(Curl_uint_bset_contains(&multi->process, mid))
           return TRUE;
-        /* We are no longer proecessing this transfer */
+        /* We are no longer processing this transfer */
         Curl_uint_bset_remove(&multi->dirty, mid);
       }
       else {
index 0665b83659eb4399db4e31594c70294911590782..c6d0a56f0d2611195ebb22b51ef0fc052101266c 100644 (file)
@@ -59,7 +59,7 @@ struct pingpong {
   struct dynbuf recvbuf;
   size_t overflow; /* number of bytes left after a final response line */
   size_t nfinal;   /* number of bytes in the final response line, which
-                      after a match is first in the receice buffer */
+                      after a match is first in the receive buffer */
 
   /* Function pointers the protocols MUST implement and provide for the
      pingpong layer to function */
index 64fa9654a01f11acfd5c3adc200da7ccf7a28b9d..d2adf43a7c2e9ca6afaf1ded7ddc158dd82b3a78 100644 (file)
@@ -2005,7 +2005,7 @@ static CURLcode cr_eob_read(struct Curl_easy *data,
           eob = &SMTP_EOB[2];
           break;
         case 3:
-          /* ended with '\r\n.', we should escpe the last '.' */
+          /* ended with '\r\n.', we should escape the last '.' */
           eob = "." SMTP_EOB;
           break;
         default:
index 805e52513fb0d78e1d80b2e965f1d31704e81f17..8d99e02211a78be83bb15ad26d1e18645afca673 100644 (file)
@@ -1851,7 +1851,7 @@ static CURLcode cf_progress_egress(struct Curl_cfilter *cf,
     return curlcode;
   }
 
-  /* In UDP, there is a maximum theoretical packet paload length and
+  /* In UDP, there is a maximum theoretical packet payload length and
    * a minimum payload length that is "guaranteed" to work.
    * To detect if this minimum payload can be increased, ngtcp2 sends
    * now and then a packet payload larger than the minimum. It that
index aa0930e3fcd33c0cb8ad156d92db48bbaa882efb..fe47e81a87d8b509c7830517322f9d95cf4fcc7f 100644 (file)
@@ -859,7 +859,7 @@ int Curl_parseX509(struct Curl_X509certificate *cert,
   if(!getASN1Element(&cert->subjectPublicKey, ccp,
                      cert->subjectPublicKeyInfo.end))
     return -1;
-  /* Get optional issuerUiqueID, subjectUniqueID and extensions. */
+  /* Get optional issuerUniqueID, subjectUniqueID and extensions. */
   cert->issuerUniqueID.tag = cert->subjectUniqueID.tag = 0;
   cert->extensions.tag = elem.tag = 0;
   cert->issuerUniqueID.header = cert->subjectUniqueID.header = NULL;
index 7f8e141defc0eea71069427bc4561ccd436681cc..7f8a688ca17195e5b6a239a7276b1b2c22772b18 100644 (file)
--- a/lib/ws.c
+++ b/lib/ws.c
@@ -543,7 +543,7 @@ static CURLcode ws_dec_pass(struct ws_decoder *dec,
     ws_dec_info(dec, data, "passing");
     if(result)
       return result;
-    /* paylod parsing done */
+    /* payload parsing done */
     dec->state = WS_DEC_INIT;
     break;
   default:
index b77122f9322cb333da8d87a3f12b76212c065c12..d7a5dfe7b0af818daac34ca5f2e1d8614921e3ef 100755 (executable)
@@ -401,7 +401,7 @@ sub single {
                 push @desc, ".fi\n";
                 next;
             }
-            # convert single backslahes to doubles
+            # convert single backslashes to doubles
             $d =~ s/\\/\\\\/g;
             # lines starting with a period needs it escaped
             $d =~ s/^\./\\&./;
index ac54e5e0b6129cbaec4af82220d7a5ab842daa5a..bf5bca5b1a47c153889377ea0b4f1ac8eea115a4 100755 (executable)
@@ -826,7 +826,7 @@ sub single {
             print ".nf\n";
             foreach my $e (@examples) {
                 $e =~ s!\$URL!https://example.com!g;
-                # convert single backslahes to doubles
+                # convert single backslashes to doubles
                 $e =~ s/\\/\\\\/g;
                 print "curl $e\n";
             }
index bb10f4f14d46df1b9def4d8681616e5cd1a1412c..8da4a0da92d00f525c098f01da32792ba76cadd9 100644 (file)
@@ -242,7 +242,7 @@ class TestVsFTPD:
         assert os.path.exists(dstfile)
         destdata = open(dstfile).readlines()
         expdata = [indata] if len(indata) else []
-        assert expdata == destdata, f'exected: {expdata}, got: {destdata}'
+        assert expdata == destdata, f'expected: {expdata}, got: {destdata}'
 
     def check_downloads(self, client, srcfile: str, count: int,
                         complete: bool = True):
index d44a47d2088a3276f72580b300a3e5cf4c6d987c..663db1381aaf3900da474680872afa5966d8e8e1 100644 (file)
@@ -254,7 +254,7 @@ class TestFtpsVsFTPD:
         assert os.path.exists(dstfile)
         destdata = open(dstfile).readlines()
         expdata = [indata] if len(indata) else []
-        assert expdata == destdata, f'exected: {expdata}, got: {destdata}'
+        assert expdata == destdata, f'expected: {expdata}, got: {destdata}'
 
     def check_downloads(self, client, srcfile: str, count: int,
                         complete: bool = True):
index d93dede6912b49111ff927c0f1b90fefd6d2e18b..f1db830872856ea1dbe757e3ad4d53868e63d892 100644 (file)
@@ -234,7 +234,7 @@ static CURLcode test_run(char *URL, long option, unsigned int *max_fd_count)
 
     if(fd_count_chk < fd_count) {
       curl_mfprintf(stderr,
-                    "curl_multi_waitfds() sould return the amount of fds "
+                    "curl_multi_waitfds() should return the amount of fds "
                     "needed if enough isn't passed in.\n");
       res = TEST_ERR_FAILURE;
       break;
@@ -261,7 +261,7 @@ static CURLcode test_run(char *URL, long option, unsigned int *max_fd_count)
 
     if(fd_count_chk < fd_count) {
       curl_mfprintf(stderr,
-                    "curl_multi_waitfds() sould return the amount of fds "
+                    "curl_multi_waitfds() should return the amount of fds "
                     "needed if enough isn't passed in.\n");
       res = TEST_ERR_FAILURE;
       break;
index ecd856b8b4f212650ee15f9d8fc46623ee67f091..9060456fa13ec295d9e49841df27650fa1f4cf5d 100644 (file)
@@ -361,7 +361,7 @@ static CURLcode test_unit1658(char *arg)
       "r:43|"
     },
     {
-      "alpn + two ipv4 addreses",
+      "alpn + two ipv4 addresses",
       (const unsigned char *)"\x00\x10" /* 16-bit prio */
       "\x00" /* no RNAME */
       "\x00\x01" /* RR (1 == ALPN) */
@@ -376,7 +376,7 @@ static CURLcode test_unit1658(char *arg)
       "r:0|p:16|.|alpn:10|ipv4:192.168.0.1|ipv4:192.168.0.2|"
     },
     {
-      "alpn + two ipv4 addreses in wrong order",
+      "alpn + two ipv4 addresses in wrong order",
       (const unsigned char *)"\x00\x10" /* 16-bit prio */
       "\x00" /* no RNAME */
       "\x00\x04" /* RR (4 == Ipv4hints) */
index efb58e95a3663c42635d39835cab6fde5beabf7d..444912a21efe74cd5e585c8ccc6b8318b5c840ba 100644 (file)
@@ -106,14 +106,14 @@ static void check_set(const char *name, unsigned int capacity,
     fail_unless(Curl_uint_bset_contains(&bset, s[i]), "unexpectedly lost");
 
   fail_unless(!Curl_uint_bset_resize(&bset, capacity/2), "resize half failed");
-  /* halfed the size, what numbers remain in set? */
+  /* halved the size, what numbers remain in set? */
   c = Curl_uint_bset_capacity(&bset);
   n = 0;
   for(i = 0; i < slen; ++i) {
     if(s[i] < c)
       ++n;
   }
-  fail_unless(n == Curl_uint_bset_count(&bset), "set count(halfed) wrong");
+  fail_unless(n == Curl_uint_bset_count(&bset), "set count(halved) wrong");
   for(i = 0; i < n; i++)  /* still present after resize half */
     fail_unless(Curl_uint_bset_contains(&bset, s[i]), "unexpectedly lost");
 
index aff1292bb2c4da8bc028d9ea669e77efe933eb22..fa65b06c58032f2a16f8397fa368362862d2ea89 100644 (file)
@@ -65,7 +65,7 @@ static CURLcode test_unit3214(char *arg)
   checksize("Curl_multi", sizeof(struct Curl_multi), MAX_CURL_MULTI);
 
   /* public structs MUST NOT change (unless controlled), but exact sizes
-     depend on architecure */
+     depend on architecture */
   checksize("curl_httppost", sizeof(struct curl_httppost), MAX_CURL_HTTPPOST);
   checksize("curl_slist", sizeof(struct curl_slist), MAX_CURL_SLIST);
   checksize("curl_khkey", sizeof(struct curl_khkey), MAX_CURL_KHKEY);