]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
spelling: fix codespell 2.2.6 typos
authorViktor Szakats <commit@vsz.me>
Tue, 3 Oct 2023 14:44:13 +0000 (14:44 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 3 Oct 2023 21:37:56 +0000 (21:37 +0000)
Closes #12019

23 files changed:
docs/IPFS.md
docs/TODO
docs/examples/simplessl.c
include/curl/curl.h
lib/cf-h2-proxy.c
lib/formdata.c
lib/ftp.c
lib/ftplistparser.c
lib/sendf.h
lib/urldata.h
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vtls/schannel.c
packages/vms/gnv_link_curl.com
tests/data/test2051
tests/libtest/lib1560.c
tests/libtest/lib2306.c
tests/libtest/lib526.c
tests/libtest/lib533.c
tests/manpage-scan.pl
tests/options-scan.pl
tests/server/rtspd.c
tests/unit/unit1300.c

index 0bb2cd7c72fb099de19ac9fce6b13d1942f49114..be8c597d9e6f34b959fafa703de04dbe677b0177 100644 (file)
@@ -1,7 +1,7 @@
 # IPFS
 For an overview about IPFS, visit the [IPFS project site](https://ipfs.tech/).
 
-In IPFS there are two protocols. IPFS and IPNS (their workings are explained in detail [here](https://docs.ipfs.tech/concepts/)). The ideal way to access data on the IPFS network is trough those protocols. For example to access the Big Buck Bunny video the ideal way to access it is like: `ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi`
+In IPFS there are two protocols. IPFS and IPNS (their workings are explained in detail [here](https://docs.ipfs.tech/concepts/)). The ideal way to access data on the IPFS network is through those protocols. For example to access the Big Buck Bunny video the ideal way to access it is like: `ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi`
 
 ## IPFS Gateways
 
index a8e090c168885e2408b01db5313c28fd8fc05366..f487f88aa3818f77483ffa2ebc09fd097f2fd2bd 100644 (file)
--- a/docs/TODO
+++ b/docs/TODO
 
 5.3 Rearrange request header order
 
- Server implementors often make an effort to detect browser and to reject
+ Server implementers often make an effort to detect browser and to reject
  clients it can detect to not match. One of the last details we cannot yet
  control in libcurl's HTTP requests, which also can be exploited to detect
  that libcurl is in fact used even when it tries to impersonate a browser, is
index 1be805cc3b434cee9917c937adf33b4ba4f1343f..9d933ce82c49816a8555d8c04e195a34421699d9 100644 (file)
@@ -118,7 +118,7 @@ int main(void)
       /* set the private key (file or ID in engine) */
       curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyName);
 
-      /* set the file with the certs vaildating the server */
+      /* set the file with the certs validating the server */
       curl_easy_setopt(curl, CURLOPT_CAINFO, pCACertFile);
 
       /* disconnect if we cannot validate server's cert */
index 78901591c1959e7c77143681f17dd408918c8d5e..bf71d82fb4b79abcd9253095ff63fcc0a9f51cbf 100644 (file)
@@ -646,10 +646,10 @@ typedef enum {
 #ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
                           the obsolete stuff removed! */
 
-/* Previously obsolete error code re-used in 7.38.0 */
+/* Previously obsolete error code reused in 7.38.0 */
 #define CURLE_OBSOLETE16 CURLE_HTTP2
 
-/* Previously obsolete error codes re-used in 7.24.0 */
+/* Previously obsolete error codes reused in 7.24.0 */
 #define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
 #define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
 
@@ -1358,7 +1358,7 @@ typedef enum {
      operation slower and is less friendly for the network. */
   CURLOPT(CURLOPT_FRESH_CONNECT, CURLOPTTYPE_LONG, 74),
 
-  /* Set to explicitly forbid the upcoming transfer's connection to be re-used
+  /* Set to explicitly forbid the upcoming transfer's connection to be reused
      when done. Do not use this unless you're absolutely sure of this, as it
      makes the operation slower and is less friendly for the network. */
   CURLOPT(CURLOPT_FORBID_REUSE, CURLOPTTYPE_LONG, 75),
@@ -1652,7 +1652,7 @@ typedef enum {
   CURLOPT(CURLOPT_SOCKOPTFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 148),
   CURLOPT(CURLOPT_SOCKOPTDATA, CURLOPTTYPE_CBPOINT, 149),
 
-  /* set to 0 to disable session ID re-use for this transfer, default is
+  /* set to 0 to disable session ID reuse for this transfer, default is
      enabled (== 1) */
   CURLOPT(CURLOPT_SSL_SESSIONID_CACHE, CURLOPTTYPE_LONG, 150),
 
index 922212082d0b605f8dd59aae026210301f0b2175..dbc895d2634d93fa9dacb0ba34b3b99bc42bc66a 100644 (file)
@@ -1023,7 +1023,7 @@ static CURLcode inspect_response(struct Curl_cfilter *cf,
     if(result)
       return result;
     if(data->req.newurl) {
-      /* Inidicator that we should try again */
+      /* Indicator that we should try again */
       Curl_safefree(data->req.newurl);
       h2_tunnel_go_state(cf, ts, H2_TUNNEL_INIT, data);
       return CURLE_OK;
index f370ce6854b5f9eccda0a6410b0fd47155acc40d..e40c4bcb039bb98fdfd25aa45aee5412ce740c66 100644 (file)
@@ -789,7 +789,7 @@ static CURLcode setname(curl_mimepart *part, const char *name, size_t len)
   return res;
 }
 
-/* wrap call to fseeko so it matches the calling convetion of callback */
+/* wrap call to fseeko so it matches the calling convention of callback */
 static int fseeko_wrapper(void *stream, curl_off_t offset, int whence)
 {
 #if defined(HAVE_FSEEKO)
index 199a85447d6857cdb07fb35c455d0db1173e0db6..518c9233201f002756852ec02545b5c9cbfc8704 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3480,7 +3480,7 @@ CURLcode ftp_sendquote(struct Curl_easy *data,
       /* if a command starts with an asterisk, which a legal FTP command never
          can, the command will be allowed to fail without it causing any
          aborts or cancels etc. It will cause libcurl to act as if the command
-         is successful, whatever the server reponds. */
+         is successful, whatever the server responds. */
 
       if(cmd[0] == '*') {
         cmd++;
index 226d9bc033d493f39676e0c07d891601ab304176..2a7ca5bafcb8f5284da95d791c40fd49104e6919 100644 (file)
@@ -379,7 +379,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
     /* scenario:
      * 1. call => OK..
      * 2. call => OUT_OF_MEMORY (or other error)
-     * 3. (last) call => is skipped RIGHT HERE and the error is hadled later
+     * 3. (last) call => is skipped RIGHT HERE and the error is handled later
      *    in wc_statemach()
      */
     goto fail;
index 3fb07f64a995ba985d1ad471516849c38bf948c1..9ee00bb0df2abb7c764c433a5d96588e03ed7b8a 100644 (file)
@@ -30,7 +30,7 @@
 
 /**
  * Type of data that is being written to the client (application)
- * - data written can be eiter BODY or META data
+ * - data written can be either BODY or META data
  * - META data is either INFO or HEADER
  * - INFO is meta information, e.g. not BODY, that cannot be interpreted
  *   as headers of a response. Example FTP/IMAP pingpong answers.
index 989caeeb8dfc631fa7cf0d0bc2642df775beed90..dff26e6b4bd1a28602479a2ad72905be5a4c9a52 100644 (file)
@@ -1262,7 +1262,7 @@ struct tempbuf {
   struct dynbuf b;
   int type;   /* type of the 'tempwrite' buffer as a bitmask that is used with
                  Curl_client_write() */
-  BIT(paused_body); /* if PAUSE happend before/during BODY write */
+  BIT(paused_body); /* if PAUSE happened before/during BODY write */
 };
 
 /* Timers */
index 7c6a2e53f338fa4115b4abf76e0471533120d242..b0f49d60c90c9ed011b797b6772af00dfe23a898 100644 (file)
@@ -2660,7 +2660,7 @@ static void sftp_quote(struct Curl_easy *data)
   /* if a command starts with an asterisk, which a legal SFTP command never
      can, the command will be allowed to fail without it causing any
      aborts or cancels etc. It will cause libcurl to act as if the command
-     is successful, whatever the server reponds. */
+     is successful, whatever the server responds. */
 
   if(cmd[0] == '*') {
     cmd++;
@@ -2834,7 +2834,7 @@ static void sftp_quote_stat(struct Curl_easy *data)
   /* if a command starts with an asterisk, which a legal SFTP command never
      can, the command will be allowed to fail without it causing any
      aborts or cancels etc. It will cause libcurl to act as if the command
-     is successful, whatever the server reponds. */
+     is successful, whatever the server responds. */
 
   if(cmd[0] == '*') {
     cmd++;
index 21fe1193c263c9225c57557dca1891c6fd7cde7e..f539b393b38c973b4cfeb41cf4569833a1984d87 100644 (file)
@@ -1503,7 +1503,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block)
       /* if a command starts with an asterisk, which a legal SFTP command never
          can, the command will be allowed to fail without it causing any
          aborts or cancels etc. It will cause libcurl to act as if the command
-         is successful, whatever the server reponds. */
+         is successful, whatever the server responds. */
 
       if(cmd[0] == '*') {
         cmd++;
@@ -1699,7 +1699,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block)
       /* if a command starts with an asterisk, which a legal SFTP command never
          can, the command will be allowed to fail without it causing any
          aborts or cancels etc. It will cause libcurl to act as if the command
-         is successful, whatever the server reponds. */
+         is successful, whatever the server responds. */
 
       if(cmd[0] == '*') {
         cmd++;
index 7b14b1719f6eb2d4c36b201ef2fdab708fdac38a..410a5c4ec7c25b273fa9b9c7c4697ef41f2f0958 100644 (file)
@@ -728,7 +728,7 @@ schannel_acquire_credential_handle(struct Curl_cfilter *cf,
   }
 #endif
 
-  /* allocate memory for the re-usable credential handle */
+  /* allocate memory for the reusable credential handle */
   backend->cred = (struct Curl_schannel_cred *)
     calloc(1, sizeof(struct Curl_schannel_cred));
   if(!backend->cred) {
@@ -1128,7 +1128,7 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
 
   backend->cred = NULL;
 
-  /* check for an existing re-usable credential handle */
+  /* check for an existing reusable credential handle */
   if(ssl_config->primary.sessionid) {
     Curl_ssl_sessionid_lock(data);
     if(!Curl_ssl_getsessionid(cf, data, (void **)&old_cred, NULL)) {
index 4959f1babec491153248fc30fc5abb2b3e5ddeb6..247987ae874695e9d13dd82bfcea35f352e9a6a2 100644 (file)
@@ -388,7 +388,7 @@ $ if f$search("[.src]curl-tool_main.o") .nes. ""
 $ then
 $!  From src/makefile.inc:
 $!  # libcurl has sources that provide functions named curlx_* that aren't
-$!  # part of the official API, but we re-use the code here to avoid
+$!  # part of the official API, but we reuse the code here to avoid
 $!  # duplication.
 $!
 $!
index bd823bfffa1fdc967ef4a4e1591d4d4d4914448a..2dcee0da1a64e5c5f3f45c1135edd6495c2cc29f 100644 (file)
@@ -27,7 +27,7 @@ OK
 http
 </server>
  <name>
-Connect to specific host: Re-use existing connections if possible
+Connect to specific host: Reuse existing connections if possible
  </name>
 
  <command>
index 2843b41c11e1fdf2015f7e203ab97ccda9d3a20b..765df0a279a905b7d8eae32814b47a0cf7cd1e88 100644 (file)
@@ -838,7 +838,7 @@ static const struct setcase set_parts_list[] = {
    0, /* set */
    CURLUE_OK, CURLUE_BAD_HOSTNAME},
   {"https://example.com/",
-   "host=0xff,", /* '++' there's no automatic URL decode when settin this
+   "host=0xff,", /* '++' there's no automatic URL decode when setting this
                   part */
    "https://0xff/",
    0, /* get */
index 6023bfee4c44d8141bb608317f4f2f0f5bacf94a..1831b331c43710bfe055bea22cf2ef0c50549943 100644 (file)
@@ -42,7 +42,7 @@ int test(char *URL)
   curl_easy_setopt(cl, CURLOPT_VERBOSE, 1L);
   curl_easy_perform(cl);
 
-  /* re-use handle, do a second transfer */
+  /* reuse handle, do a second transfer */
   curl_easy_setopt(cl, CURLOPT_URL, URL2);
   curl_easy_perform(cl);
   curl_easy_cleanup(cl);
index d6b365a199c7884d2d3e52d28a0888892090d01e..12b65c023fa84db83ef021c7b36579e2feae17a1 100644 (file)
@@ -109,7 +109,7 @@ int test(char *URL)
         /* first remove the only handle we use */
         curl_multi_remove_handle(m, curl[0]);
 
-        /* make us re-use the same handle all the time, and try resetting
+        /* make us reuse the same handle all the time, and try resetting
            the handle first too */
         curl_easy_reset(curl[0]);
         easy_setopt(curl[0], CURLOPT_URL, URL);
index ff476343fac92691962c95c4cbc120ac4fec5275..0f6a89c2fbfdff820bdb571c9408a73ea8789d2b 100644 (file)
@@ -75,7 +75,7 @@ int test(char *URL)
         /* remove the handle we use */
         curl_multi_remove_handle(m, curl);
 
-        /* make us re-use the same handle all the time, and try resetting
+        /* make us reuse the same handle all the time, and try resetting
            the handle first too */
         curl_easy_reset(curl);
         easy_setopt(curl, CURLOPT_URL, libtest_arg2);
index 0a7654d33be5bcb076f56b84d4c8499d1065320e..c09e979d0bddfede343edfe4bbfa9f25145c32f9 100755 (executable)
@@ -90,7 +90,7 @@ sub scanmanpage {
 
 my $r;
 
-# check for define alises
+# check for define aliases
 open($r, "<", "$curlh") ||
     die "no curl.h";
 while(<$r>) {
index 05e50bf590bf037309b61cac8a6b4a3a50eda83e..2014dc4f6deca0382621addf4fc2e01d223dc9db 100755 (executable)
@@ -26,7 +26,7 @@
 #
 # - Get all options mentioned in the $cmddir.
 # - Make sure they're all mentioned in the $opts document
-# - Make usre that the version in $opts matches the version in the file in
+# - Make sure that the version in $opts matches the version in the file in
 #   $cmddir
 #
 
index 47bd32e74e71c0d3ff6fc6ff0aba43f278680802..dbe8a48b08c59058a89471ea22cec5fd12df804f 100644 (file)
@@ -1288,7 +1288,7 @@ int main(int argc, char *argv[])
     }
 
     /*
-    ** As soon as this server acepts a connection from the test harness it
+    ** As soon as this server accepts a connection from the test harness it
     ** must set the server logs advisor read lock to indicate that server
     ** logs should not be read until this lock is removed by this server.
     */
index acbf89b90e194add6dd8493d2d7f36a91fa73cba..66fb5d02d56e633c16b92e4349d9cbe6fea7c65f 100644 (file)
@@ -75,7 +75,7 @@ UNITTEST_START
 
   fail_unless(llist.size == 0, "list initial size should be zero");
   fail_unless(llist.head == NULL, "list head should initiate to NULL");
-  fail_unless(llist.tail == NULL, "list tail should intiate to NULL");
+  fail_unless(llist.tail == NULL, "list tail should initiate to NULL");
   fail_unless(llist.dtor == test_Curl_llist_dtor,
                "list dtor should initiate to test_Curl_llist_dtor");