]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: Fix typos in docs and lib
authorRainRat <rainrat78@yahoo.ca>
Thu, 29 Feb 2024 19:55:28 +0000 (11:55 -0800)
committerDaniel Gustafsson <daniel@yesql.se>
Fri, 1 Mar 2024 08:59:48 +0000 (09:59 +0100)
This fixes miscellaneous typos and duplicated words in the docs, lib
and test comments and a few user facing errorstrings.

Author: RainRat on Github
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Dan Fandrich <dan@coneharvesters.com>
Closes: #13019
26 files changed:
docs/CONNECTION-FILTERS.md
docs/cmdline-opts/MANPAGE.md
docs/cmdline-opts/_VARIABLES.md
docs/cmdline-opts/gen.pl
docs/cmdline-opts/resolve.md
docs/examples/ghiper.c
docs/libcurl/libcurl.m4
docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md
docs/libcurl/opts/CURLSHOPT_SHARE.md
docs/libcurl/opts/CURLSHOPT_UNSHARE.md
lib/asyn-ares.c
lib/cfilters.h
lib/curl_des.c
lib/hostip.c
lib/http.c
lib/mprintf.c
lib/socks_gssapi.c
lib/vquic/curl_ngtcp2.c
lib/vquic/curl_osslq.c
lib/vssh/libssh2.c
scripts/cmp-config.pl
tests/ftpserver.pl
tests/http/test_14_auth.py
tests/libtest/lib518.c
tests/libtest/lib537.c
tests/server/sockfilt.c

index 6c0ed2bc76470223945bde65d55577a8b9633f99..06ec0293f7e7703abdfaf5b55223f56b3cd16107 100644 (file)
@@ -267,7 +267,7 @@ conn[curl.se] --> SETUP[TCP] --> HAPPY-EYEBALLS --> TCP[2a04:4e42:c00::347]:443
 
 The modular design of connection filters and that we can plug them into each other is used to control the parallel attempts. When a `TCP` filter does not connect (in time), it is torn down and another one is created for the next address. This keeps the `TCP` filter simple. 
 
-The `HAPPY-EYEBALLS` on the other hand stays focused on its side of the problem. We can use it also to make other type of connection by just giving it another filter type to try and have happy eyeballing for QUIC:
+The `HAPPY-EYEBALLS` on the other hand stays focused on its side of the problem. We can use it also to make other type of connection by just giving it another filter type to try to have happy eyeballing for QUIC:
 
 ```
 * create connection for --http3-only https://curl.se
index 51310564fe7f95b924fe0363b711e89e4c8c4d4c..16c203608df19b0ad6c2b96d3418f736fd543ec6 100644 (file)
@@ -88,7 +88,7 @@ Angle brackets (`<>`) need to be escaped when used in text like `\<` and
 
 ### Headers
 
-The `#` header can be used by non-option files and it produces produces a
+The `#` header can be used by non-option files and it produces a
 `.SH` output.
 
 If the `#` header is used for a command line option file, that header is
index 60ee6d00d1434cc0ff7afd238fda089d322da41c..77e9523b9a9126cdf1467353aabfa70d2abb255a 100644 (file)
@@ -41,4 +41,4 @@ as POST data:
     --expand-data "{{fix:trim:url}}"
     https://example.com/
 
-Command line variables and expansions were added in in 8.3.0.
+Command line variables and expansions were added in 8.3.0.
index 17beab5b8bbe68dcbbddf0a7ae713f94f7e9c849..9105529998f251b708dec6b7ecaf7ed0f774a9d8 100755 (executable)
@@ -897,7 +897,7 @@ HEADER
         my $f = $_;
         chomp $f;
         if($f =~ /^#/) {
-            # stardard comment
+            # standard comment
             next;
         }
         if(/^%options/) {
index c5c5eddd5d335bed7dee573a11b45fcbab080812..70d039aa8c3c00d5b722df067014064eaac827ca 100644 (file)
@@ -43,4 +43,4 @@ Support for providing multiple IP addresses per entry was added in 7.59.0.
 
 Support for resolving with wildcard was added in 7.64.0.
 
-Support for the '+' prefix was was added in 7.75.0.
+Support for the '+' prefix was added in 7.75.0.
index 4510edae5062422f34e30cda000450c5da805f37..ec7174ff7f6065f187cfb5b21374652430cb83e6 100644 (file)
@@ -22,7 +22,7 @@
  *
  ***************************************************************************/
 /* <DESC>
- * multi socket API usage together with with glib2
+ * multi socket API usage together with glib2
  * </DESC>
  */
 /* Example application source code using the multi socket interface to
index e4a518b5ce11f6cee47069c15fb5d41c0cddaa41..044d7afbd938cdacae1a9623c136b375d810cdb5 100644 (file)
@@ -169,7 +169,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
            LIBS="$LIBCURL $LIBS"
 
            AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <curl/curl.h>]],[[
-/* Try and use a few common options to force a failure if we are
+/* Try to use a few common options to force a failure if we are
    missing symbols or cannot link. */
 int x;
 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
index a199648c13ca9e1af2ab7e3c8140f1571322f9bd..58eba18d521e302b17caf9dfc164b467e5fd6d8b 100644 (file)
@@ -73,7 +73,7 @@ The data is header (or header-like) data sent to the peer.
 ## CURLINFO_DATA_IN
 
 The data is the unprocessed protocol data received from the peer. Even if the
-data is encoded or compressed, it is not not provided decoded nor decompressed
+data is encoded or compressed, it is not provided decoded nor decompressed
 to this callback. If you need the data in decoded and decompressed form, use
 CURLOPT_WRITEFUNCTION(3).
 
index 8f742a40213843fad125b3e7af32c2cbe894b0f8..7866640ccc6fcd95af98884c97bd30dc0deaacd4 100644 (file)
@@ -27,7 +27,7 @@ CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_SHARE, long type);
 
 The *type* parameter specifies what specific data that should be shared
 and kept in the share object that was created with curl_share_init(3).
-The given *type* must be be one of the values described below. You can set
+The given *type* must be one of the values described below. You can set
 CURLSHOPT_SHARE(3) multiple times with different data arguments to have
 the share object share multiple types of data. Unset a type again by setting
 CURLSHOPT_UNSHARE(3).
index 4a11bfa55dd801014aa5745d4c79dbe73c0f4d42..e6c2340135d0dd23a7ac2fdc72c8874b1e5e1e1a 100644 (file)
@@ -28,7 +28,7 @@ CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type);
 The *type* parameter specifies what specific data that should no longer be
 shared and kept in the share object that was created with
 curl_share_init(3). In other words, stop sharing that data in this
-shared object. The given *type* must be be one of the values described
+shared object. The given *type* must be one of the values described
 below. You can set CURLSHOPT_UNSHARE(3) multiple times with different
 data arguments to remove multiple types from the shared object. Add data to
 share again with CURLSHOPT_SHARE(3).
index 76efba78ad5dc1b630bcb2a17c347a1b5e779e2c..2290a71ef4664c5678709b91dcf2d1bac46c0f01 100644 (file)
@@ -850,7 +850,7 @@ CURLcode Curl_set_dns_servers(struct Curl_easy *data,
   /* If server is NULL or empty, this would purge all DNS servers
    * from ares library, which will cause any and all queries to fail.
    * So, just return OK if none are configured and don't actually make
-   * any changes to c-ares.  This lets c-ares use it's defaults, which
+   * any changes to c-ares.  This lets c-ares use its defaults, which
    * it gets from the OS (for instance from /etc/resolv.conf on Linux).
    */
   if(!(servers && servers[0]))
index 92a2132fe0e1dc0b406e325b8b98a0f8bd33d423..c90b1f4bc2bdb3c0f1ca2a794eeb34399ab89b23 100644 (file)
@@ -402,7 +402,7 @@ void Curl_conn_adjust_pollset(struct Curl_easy *data,
 /**
  * Receive data through the filter chain at `sockindex` for connection
  * `data->conn`. Copy at most `len` bytes into `buf`. Return the
- * actuel number of bytes copied or a negative value on error.
+ * actual number of bytes copied or a negative value on error.
  * The error code is placed into `*code`.
  */
 ssize_t Curl_cf_recv(struct Curl_easy *data, int sockindex, char *buf,
index b77763f26842ae6edbd9948d68766b97d0686453..f8d2b2cc696ccd2a6f0a4515e1456b53ec14b081 100644 (file)
@@ -36,7 +36,7 @@
  * Curl_des_set_odd_parity()
  *
  * This is used to apply odd parity to the given byte array. It is typically
- * used by when a cryptography engines doesn't have it's own version.
+ * used by when a cryptography engine doesn't have its own version.
  *
  * The function is a port of the Java based oddParity() function over at:
  *
index 4f44d348f6e5726d98654457613611f167b8bb72..442817d119fbdf0b4ff35746093b4c0d40842390 100644 (file)
@@ -288,7 +288,7 @@ static struct Curl_dns_entry *fetch_addr(struct Curl_easy *data,
   size_t entry_len = create_hostcache_id(hostname, 0, port,
                                          entry_id, sizeof(entry_id));
 
-  /* See if its already in our dns cache */
+  /* See if it's already in our dns cache */
   dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
 
   /* No entry found in cache, check if we might have a wildcard entry */
index 870de3830cf5fb15d6f1b8c71202172639d6eac3..3f17f7cd92fc141bf37df50699cd5a6deca049c7 100644 (file)
@@ -4125,7 +4125,7 @@ CURLcode Curl_http_write_resp(struct Curl_easy *data,
   blen -= consumed;
   buf += consumed;
   /* either all was consumed in header parsing, or we have data left
-   * and are done with heders, e.g. it is BODY data */
+   * and are done with headers, e.g. it is BODY data */
   DEBUGASSERT(!blen || !data->req.header);
   if(!data->req.header && (blen || is_eos)) {
     /* BODY data after header been parsed, write and consume */
index 5695253eb3babfc61236feab81b9cd29aa8584de..4c60d13305b2890bbc19d9cb93be924ee1c6bee8 100644 (file)
@@ -642,7 +642,7 @@ static int parsefmt(const char *format,
  * On success, the input array describes the type of all arguments and their
  * values.
  *
- * The function then iterates over the output sengments and outputs them one
+ * The function then iterates over the output segments and outputs them one
  * by one until done. Using the appropriate input arguments (if any).
  *
  * All output is sent to the 'stream()' callback, one byte at a time.
index 243715055c29cfd1d3314fffd77607f169a42579..c0b42b871a9042df2ed6ba57008004cd24e38539 100644 (file)
@@ -475,7 +475,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(struct Curl_cfilter *cf,
                               gss_recv_token.length, &actualread);
 
   if(result || (actualread != us_length)) {
-    failf(data, "Failed to receive GSS-API encryptrion type.");
+    failf(data, "Failed to receive GSS-API encryption type.");
     gss_release_buffer(&gss_status, &gss_recv_token);
     gss_delete_sec_context(&gss_status, &gss_context, NULL);
     return CURLE_COULDNT_CONNECT;
index a26b3e429d251274b9c5e239b54a9a7445d35336..7ef1b5e8407ab0fc4c3ee1f043dc0697837a634b 100644 (file)
@@ -1769,7 +1769,7 @@ static CURLcode cf_progress_egress(struct Curl_cfilter *cf,
   }
 
   /* In UDP, there is a maximum theoretical packet paload length and
-   * a minimum payload length that is "guarantueed" to work.
+   * 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
    * is ACKed by the peer, both parties know that it works and
index ede60e29d8bfb36a17d767f3d1a82360cdb1e686..1d78bd71711b8714ce682ef161909896f4511e1e 100644 (file)
@@ -426,7 +426,7 @@ static CURLcode cf_osslq_ssl_err(struct Curl_cfilter *cf,
 #endif
   else if((lib == ERR_LIB_SSL) && (reason == SSL_R_PROTOCOL_IS_SHUTDOWN)) {
     ctx->protocol_shutdown = TRUE;
-    err_descr = "QUIC connectin has been shut down";
+    err_descr = "QUIC connection has been shut down";
     result = def_result;
   }
   else {
index 36975420bc3348df1f692f7759841186d25b2a12..073c6873db40ca0d00a1b65226f6a4802afbc975 100644 (file)
@@ -3272,7 +3272,7 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
 #endif /* CURL_LIBSSH2_DEBUG */
 
   /* libcurl MUST to set custom memory functions so that the kbd_callback
-     funciton's memory allocations can be properled freed */
+     function's memory allocations can be properly freed */
   sshc->ssh_session = libssh2_session_init_ex(my_libssh2_malloc,
                                               my_libssh2_free,
                                               my_libssh2_realloc, data);
index e36fcdd3c40a88d472ff1dee870c9c1c5e5284f2..ebd7c2fb2350171e7ae7e73c4e33b730a14720b2 100755 (executable)
@@ -31,7 +31,7 @@ if(!$cmake) {
     exit;
 }
 
-# this lists complete lines that will be removed from the the output if
+# this lists complete lines that will be removed from the output if
 # matching
 my %remove = (
     '#define _FILE_OFFSET_BITS 64' => 1,
index e250aa1cb69d2d60a0bb699949c6c5d345150ea1..10abe418c23d056fd7c75cf0398fb39cc5935ff7 100755 (executable)
@@ -672,7 +672,7 @@ sub protocolsetup {
 
 # Perform the disconnecgt handshake with sockfilt on the secondary connection
 # (the only connection we actively disconnect).
-# This involves waiting for the disconnect acknowledgmeent after the DISC
+# This involves waiting for the disconnect acknowledgment after the DISC
 # command, while throwing away anything else that might come in before
 # that.
 sub disc_handshake {
index 9fd120584a667fa730510ab724df821ed6c56bb5..b90817b62d7017145a38380e7f8e7104c0d32719 100644 (file)
@@ -133,7 +133,7 @@ class TestAuth:
         r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto, extra_args=[
             '--basic', '--user', f'test:{password}'
         ])
-        # Depending on protocl, we might have an error sending or
+        # Depending on protocol, we might have an error sending or
         # the server might shutdown the connection and we see the error
         # on receiving
         assert r.exit_code in [55, 56], f'{self.dump_logs()}'
index 2000412392fbe02da70349657e61b22271f1fa95..28a50b22a31bb348146aab25a688475eba4650e1 100644 (file)
@@ -432,7 +432,7 @@ static int rlimit(int keep_open)
   }
 
   /* free the chunk of memory we were reserving so that it
-     becomes becomes available to the test */
+     becomes available to the test */
 
   free(memchunk);
 
index b83e3ce31198968b92faa5f9620df9fe0efddd06..c35aea1b46e31fdb77f974dcd98b972fa16cc661 100644 (file)
@@ -436,7 +436,7 @@ static int rlimit(int keep_open)
   }
 
   /* free the chunk of memory we were reserving so that it
-     becomes becomes available to the test */
+     becomes available to the test */
 
   free(memchunk);
 
index 0900f6564fbd615abf35eaf2f6deb707ad004bd4..dcfad55544082c94fbc391935e99099a7b535aea 100644 (file)
@@ -893,7 +893,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
 
 
 /* Perform the disconnect handshake with sockfilt
- * This involves waiting for the disconnect acknowledgmeent after the DISC
+ * This involves waiting for the disconnect acknowledgment after the DISC
  * command, while throwing away anything else that might come in before
  * that.
  */