]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: fix spelling mistakes
authorDaniel Stenberg <daniel@haxx.se>
Sun, 21 May 2023 21:27:43 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 May 2023 08:42:09 +0000 (10:42 +0200)
Reported-by: musvaage on github
Fixes #11171
Closes #11172

28 files changed:
docs/INSTALL.md
docs/examples/htmltitle.cpp
docs/examples/httpput.c
lib/cf-h2-proxy.c
lib/cf-socket.c
lib/cookie.c
lib/curl_addrinfo.c
lib/http2.c
lib/urlapi.c
lib/vauth/vauth.h
lib/vquic/curl_ngtcp2.c
lib/vtls/sectransp.c
lib/vtls/x509asn1.c
m4/curl-confopts.m4
packages/OS400/curl.inc.in
packages/OS400/initscript.sh
packages/vms/curl_release_note_start.txt
src/tool_cb_rea.c
src/tool_cfgable.h
tests/data/test178
tests/data/test1906
tests/data/test31
tests/data/test415
tests/data/test420
tests/devtest.pl
tests/testutil.pm
tests/unit/unit1399.c
tests/unit/unit2600.c

index a35cffa987dfe968c65ee0d9cc3939d5e02ebcf4..29863af021e305120eb7d43031ce0ba5f27d22f6 100644 (file)
@@ -423,7 +423,7 @@ OpenSSL, follow the OpenSSL build instructions and then install `libssl.a` and
 OpenSSL like this:
 
 ```bash
-LIBS="-lssl -lcrypto -lc++" # For OpenSSL/BoringSSL. In general, you will need to the SSL/TLS layer's transtive dependencies if you are linking statically.
+LIBS="-lssl -lcrypto -lc++" # For OpenSSL/BoringSSL. In general, you will need to the SSL/TLS layer's transitive dependencies if you are linking statically.
 ./configure --host aarch64-linux-android --with-pic --disable-shared --with-openssl="$TOOLCHAIN/sysroot/usr"
 ```
 
index 0f4bad4a8a8292138bc5a0a5bfebebaa716448d9..ee3e023a2c2883ca62d6d0a21e04645f4c1a90d6 100644 (file)
@@ -272,7 +272,7 @@ int main(int argc, char *argv[])
   // Initialize CURL connection
 
   if(!init(conn, argv[1])) {
-    fprintf(stderr, "Connection initializion failed\n");
+    fprintf(stderr, "Connection initialization failed\n");
     exit(EXIT_FAILURE);
   }
 
index c80100bbe2f7ec7bb5d1b5ec71433aab4093a244..b9a6c87b7481d4a5c3859f9dbc4cd0f8ce085f9f 100644 (file)
@@ -101,8 +101,8 @@ int main(int argc, char **argv)
     /* now specify which file to upload */
     curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
 
-    /* provide the size of the upload, we specicially typecast the value
-       to curl_off_t since we must be sure to use the correct data size */
+    /* provide the size of the upload, we typecast the value to curl_off_t
+       since we must be sure to use the correct data size */
     curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
                      (curl_off_t)file_info.st_size);
 
index 13913a8524c9f8364fc05f87aa79766689425c4e..8e76ff84abd54e7afa725cde68dab770b9b3ff3a 100644 (file)
@@ -255,7 +255,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
   int rc = nghttp2_option_new(&o);
   if(rc)
     return rc;
-  /* We handle window updates ourself to enfore buffer limits */
+  /* We handle window updates ourself to enforce buffer limits */
   nghttp2_option_set_no_auto_window_update(o, 1);
 #if NGHTTP2_VERSION_NUM >= 0x013200
   /* with 1.50.0 */
index 55f1e06f4b02fb1da7c0a274944f6e708aefbd17..bd3719b8bdc63cb6256c927dee8c766fd0fa65ad 100644 (file)
@@ -747,7 +747,7 @@ CURLcode Curl_socket_connect_result(struct Curl_easy *data,
 }
 
 /* We have a recv buffer to enhance reads with len < NW_SMALL_READS.
- * This happens often on TLS connections where the TLS implemenation
+ * This happens often on TLS connections where the TLS implementation
  * tries to read the head of a TLS record, determine the length of the
  * full record and then make a subsequent read for that.
  * On large reads, we will not fill the buffer to avoid the double copy. */
index 22bc2e6fe2ea4a84ba0d086f945cba2eda94f55f..0303efbb02e46262459bfeb7b515bf3f48c3eee2 100644 (file)
@@ -1721,7 +1721,7 @@ static CURLcode cookie_output(struct Curl_easy *data,
   }
 
   /*
-   * If we reach here we have successfully written a cookie file so theree is
+   * If we reach here we have successfully written a cookie file so there is
    * no need to inspect the error, any error case should have jumped into the
    * error block below.
    */
index 35a06350d82f0521f25897a215d3f199e26073ba..f9211d3f5765d3310ca1cc3ffcdfdbf0e2c3d2e3 100644 (file)
@@ -274,7 +274,7 @@ Curl_he2ai(const struct hostent *he, int port)
 
   for(i = 0; (curr = he->h_addr_list[i]) != NULL; i++) {
     size_t ss_size;
-    size_t namelen = strlen(he->h_name) + 1; /* include null-terminatior */
+    size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */
 #ifdef ENABLE_IPV6
     if(he->h_addrtype == AF_INET6)
       ss_size = sizeof(struct sockaddr_in6);
index c666192fc8af12bad92caca045582eb10e38104f..febd8f1ffe379fd90f0f0b8bc742e27cdec68317 100644 (file)
@@ -81,7 +81,7 @@
 /* spare chunks we keep for a full window */
 #define H2_STREAM_POOL_SPARES   (H2_STREAM_WINDOW_SIZE / H2_CHUNK_SIZE)
 
-/* We need to accomodate the max number of streams with their window
+/* We need to accommodate the max number of streams with their window
  * sizes on the overall connection. Streams might become PAUSED which
  * will block their received QUOTA in the connection window. And if we
  * run out of space, the server is blocked from sending us any data.
@@ -327,7 +327,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
   int rc = nghttp2_option_new(&o);
   if(rc)
     return rc;
-  /* We handle window updates ourself to enfore buffer limits */
+  /* We handle window updates ourself to enforce buffer limits */
   nghttp2_option_set_no_auto_window_update(o, 1);
 #if NGHTTP2_VERSION_NUM >= 0x013200
   /* with 1.50.0 */
index 96e5d440a5bc41a1f1e494cbefbd889415e2c4e5..ab62773d376fa9271c0370dc7e6b44532aff0c66 100644 (file)
@@ -651,7 +651,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname,
  */
 
 #define HOST_ERROR   -1 /* out of memory */
-#define HOST_BAD     -2 /* bad IPv4 adddress */
+#define HOST_BAD     -2 /* bad IPv4 address */
 
 #define HOST_NAME    1
 #define HOST_IPV4    2
index e17d7aad6e0ffdc8bc13336cec0885204812f845..d8cff24381e86e81f9ecb1b3de8b2fa8fb081fd2 100644 (file)
@@ -219,7 +219,7 @@ bool Curl_auth_is_spnego_supported(void);
    message */
 CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
                                          const char *user,
-                                         const char *passwood,
+                                         const char *password,
                                          const char *service,
                                          const char *host,
                                          const char *chlg64,
index 4baefc48fc64ac822449aed302adbffdd9df0c52..f59a253263fcaa00e944fc4e6db222cf3e424cb1 100644 (file)
@@ -1443,7 +1443,7 @@ static int cb_h3_acked_req_body(nghttp3_conn *conn, int64_t stream_id,
   (void)cf;
   if(!stream)
     return 0;
-  /* The server ackknowledged `datalen` of bytes from our request body.
+  /* The server acknowledged `datalen` of bytes from our request body.
    * This is a delta. We have kept this data in `sendbuf` for
    * re-transmissions and can free it now. */
   if(datalen >= (uint64_t)stream->sendbuf_len_in_flight)
index 4ad8f6873b0193b10b7c2443061e73ff19160e80..c9f02f2d5b0adeab5b9bbefd8e6bc1afd60dd7e1 100644 (file)
@@ -2719,7 +2719,7 @@ check_handshake:
         failf(data, "Peer rejected unexpected message");
         break;
 #if CURL_BUILD_MAC_10_11 || CURL_BUILD_IOS_9
-      /* Treaing non-fatal error as fatal like before */
+      /* Treating non-fatal error as fatal like before */
       case errSSLClientHelloReceived:
         failf(data, "A non-fatal result for providing a server name "
                     "indication");
index c2982004523d6a7ac2d51cc149cbec97696f97c9..83d0fbb540346908011e045c6fd21d2aa5a398a4 100644 (file)
@@ -172,7 +172,7 @@ static const struct Curl_OID OIDtable[] = {
  * It is intended to support certificate information gathering for SSL backends
  * that offer a mean to get certificates as a whole, but do not supply
  * entry points to get particular certificate sub-fields.
- * Please note there is no pretention here to rewrite a full SSL library.
+ * Please note there is no pretension here to rewrite a full SSL library.
  */
 
 static const char *getASN1Element(struct Curl_asn1Element *elem,
index 1e2632d0659ce53f96965f419152738f160619db..37f7d4c2e6cde408133c127458d4dcc353fc1101 100644 (file)
@@ -475,9 +475,8 @@ AC_DEFUN([CURL_CONFIGURE_SYMBOL_HIDING], [
 
 dnl CURL_CHECK_LIB_ARES
 dnl -------------------------------------------------
-dnl When c-ares library support has been requested,
-dnl performs necessary checks and adjustsments needed
-dnl to enable support of this library.
+dnl When c-ares library support has been requested, performs necessary checks
+dnl and adjustments needed to enable support of this library.
 
 AC_DEFUN([CURL_CHECK_LIB_ARES], [
   #
index b611c73bb94679ebffca63c6314c011a6b2ed162..0961a0e4b86120ac6a8950b91f68684efa4a5154 100644 (file)
      d  CURLSTS_DONE   c                   1
      d  CURLSTS_FAIL   c                   2
       *
-      *  Renaming CURLMsg to CURL_Msg to avoid case-insensivity name clash.
+      *  Renaming CURLMsg to CURL_Msg to avoid case-insensitivity name clash.
       *
      d CURL_Msg        ds                  based(######ptr######)
      d                                     qualified
index d464ae6cf77bf0fc06394a22e819bdb4aef6bd5c..d275146f1a0f0c076edb6fb13de1e82855897e5a 100755 (executable)
@@ -208,7 +208,7 @@ make_module()
         #               putting it in an include file makes it only active
         #               for that include file.
         #       Thus we build a temporary file with the pragma prepended to
-        #               the source file and we compile that themporary file.
+        #               the source file and we compile that temporary file.
 
         echo "#line 1 \"${2}\"" > __tmpsrcf.c
         echo "#pragma convert(819)" >> __tmpsrcf.c
index a11b7c5ccddfbb1dc77d9d032987540ae52567fb..62b2836359fa92cdc2c88a2e3f17ab1f0f5a6452 100644 (file)
@@ -2,7 +2,7 @@ From file: CURL_RELEASE_NOTE_START.TXT
 
 Note: These kits are produced by a hobbyist and are providing any support
 or any commitment to supply bug fixes or future releases.  This code is
-as-is with no warrantees.
+as-is with no warranties.
 
 The testing of this build of curl was minimal and involved building some of
 the sample and test programs, accessing a public HTTPS: website, doing a
index c9379a3d8cfb5fe4e31a6c04baf840e68da73933..401e32077a29a0608112fd7244fedcef20a78b5a 100644 (file)
@@ -87,7 +87,7 @@ size_t tool_read_cb(char *buffer, size_t sz, size_t nmemb, void *userdata)
   }
   in->config->readbusy = FALSE;
 
-  /* when select() rerturned zero here, it timed out */
+  /* when select() returned zero here, it timed out */
   return (size_t)rc;
 }
 
index 9a15659bc4feef66269dd7fbb42d855fe71da6fe..35826e6954369fb1214844fb52361e53cac7f66e 100644 (file)
@@ -118,7 +118,7 @@ struct OperationConfig {
   bool dirlistonly;         /* only get the FTP dir list */
   bool followlocation;      /* follow http redirects */
   bool unrestricted_auth;   /* Continue to send authentication (user+password)
-                               when following ocations, even when hostname
+                               when following redirects, even when hostname
                                changed */
   bool netrc_opt;
   bool netrc;
index ca59e9df08f63933c99ecf94719555c814353983..03c1a441d7b5b97e6b8a230e0415b9d7130509b7 100644 (file)
@@ -53,7 +53,7 @@ Accept: */*
 </protocol>
 
 # Hyper curl returns unsupported protocol
-# bullt-in curl returns weird_server_reply
+# built-in curl returns weird_server_reply
 <errorcode>
 %if hyper
 1
index c43b0a9be4fcdfdc0b7a7690abc77ad76554c191..61cc04578ac47c8dc3b070172bded2375e551d36 100644 (file)
@@ -30,7 +30,7 @@ CURLOPT_CURLU and CURLOPT_PORT
 lib%TESTNUMBER
 </tool>
 
-# The tool does two requesets, the first sets CURLOPT_PORT to 1
+# The tool does two requests, the first sets CURLOPT_PORT to 1
 # the second resets the port again and expects that request to work.
 <command>
 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
index 6fe4910d1b7562960cc1b3608189db1b590b1ffb..821fed9fb2ab48ac30a3279ac849f4e19ce2b7d3 100644 (file)
@@ -11,7 +11,7 @@ cookiejar
 #
 # The cookies set come in two versions. This is because when curl is built
 # with Hyper, the API provides the headers already "sanitized" so we cannot
-# compapare with the exact server contents unlesss it too sends the data
+# compare with the exact server contents unless it too sends the data
 # "clean".
 
 <reply>
index e6596804357992f9e60b4af231fa6c244f5e9a2e..099ec830bf5d0bb1456a510134739ef3c84ef435 100644 (file)
@@ -53,7 +53,7 @@ Accept: */*
 </protocol>
 
 # Hyper curl returns unsupported protocol
-# bullt-in curl returns weird_server_reply
+# built-in curl returns weird_server_reply
 <errorcode>
 %if hyper
 1
index b5c7cb96b9e4387fd9a1aa325d6b6322468c4cbe..3d6b624c6e8d694ab00d2551480f00be7ee43c5b 100644 (file)
@@ -34,7 +34,7 @@ Set-Cookie: mycookie1=; Path=/; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GM
 http
 </server>
  <name>
-Setting cookies set with expried dates that were loaded from jar
+Setting cookies set with expired dates that were loaded from jar
  </name>
  <command>
 http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b %LOGDIR/cookie%TESTNUMBER -c %LOGDIR/save%TESTNUMBER
index 6c33b242f3a1e5e9fbd2ab7a27f9e469e204c1fe..99a25ab66ea0e6703d8900cd812ebcf95187a6c0 100755 (executable)
@@ -24,7 +24,7 @@
 ###########################################################################
 
 # This script is intended for developers to test some internals of the
-# runtests.pl harneess. Don't try to use this unless you know what you're
+# runtests.pl harness. Don't try to use this unless you know what you're
 # doing!
 
 # An example command-line that starts a test http server for test 11 and waits
index a2785f85b3fdc3195c813b1ac5bf6c92ba7de2a4..eabf035f8cf24a096918d70b5e00f035fdac8918 100644 (file)
@@ -22,7 +22,7 @@
 #
 ###########################################################################
 
-# This module contains miscellanous functions needed in several parts of
+# This module contains miscellaneous functions needed in several parts of
 # the test suite.
 
 package testutil;
index 83e0f45437a55bf1edd5e7bccd70a72d7c844f3c..1a293ac76be196152f0a2400f17c29f031361530 100644 (file)
@@ -76,7 +76,7 @@ static void expect_timer_seconds(struct Curl_easy *data, int seconds)
 }
 
 /* Scenario: simulate a redirect. When a redirect occurs, t_nslookup,
- * t_connect, t_appconnect, t_pretransfer, and t_starttransfer are addative.
+ * t_connect, t_appconnect, t_pretransfer, and t_starttransfer are additive.
  * E.g., if t_starttransfer took 2 seconds initially and took another 1
  * second for the redirect request, then the resulting t_starttransfer should
  * be 3 seconds. */
index 3e346e04fc005672a5b55c8599bbe9c52aab837b..1ff7740f7f84891362ae41017879bbff57ddf852 100644 (file)
@@ -364,36 +364,36 @@ static struct test_case TEST_CASES[] = {
   /* TIMEOUT_MS,        FAIL_MS      CREATED    DURATION     Result, HE_PREF */
   /* CNCT   HE          v4    v6     v4 v6      MIN   MAX */
   { 1, TURL, "test.com:123:192.0.2.1", CURL_IPRESOLVE_WHATEVER,
-     250,  150,        200,  200,    1,  0,      200,  500,  R_FAIL, NULL },
+    250,  150,        200,  200,    1,  0,      200,  500,  R_FAIL, NULL },
   /* 1 ipv4, fails after ~200ms, reports COULDNT_CONNECT   */
   { 2, TURL, "test.com:123:192.0.2.1,192.0.2.2", CURL_IPRESOLVE_WHATEVER,
-     500,  150,        200,  200,    2,  0,      400,  800,  R_FAIL, NULL },
+    500,  150,        200,  200,    2,  0,      400,  800,  R_FAIL, NULL },
   /* 2 ipv4, fails after ~400ms, reports COULDNT_CONNECT   */
 #ifdef ENABLE_IPV6
   { 3, TURL, "test.com:123:::1", CURL_IPRESOLVE_WHATEVER,
-     250,  150,        200,  200,    0,  1,      200,  500,  R_FAIL, NULL },
+    250,  150,        200,  200,    0,  1,      200,  500,  R_FAIL, NULL },
   /* 1 ipv6, fails after ~200ms, reports COULDNT_CONNECT   */
   { 4, TURL, "test.com:123:::1,::2", CURL_IPRESOLVE_WHATEVER,
-     500,  150,        200,  200,    0,  2,      400,  800,  R_FAIL, NULL },
+    500,  150,        200,  200,    0,  2,      400,  800,  R_FAIL, NULL },
   /* 2 ipv6, fails after ~400ms, reports COULDNT_CONNECT   */
 
   { 5, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_WHATEVER,
-     500,  150,        200, 200,     1,  1,      350,  800,  R_FAIL, "v4" },
+    500,  150,        200, 200,     1,  1,      350,  800,  R_FAIL, "v4" },
   /* mixed ip4+6, v4 starts, v6 kicks in on HE, fails after ~350ms */
   { 6, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_WHATEVER,
-     500,  150,        200, 200,     1,  1,      350,  800,  R_FAIL, "v6" },
+    500,  150,        200, 200,     1,  1,      350,  800,  R_FAIL, "v6" },
   /* mixed ip6+4, v6 starts, v4 kicks in on HE, fails after ~350ms */
   { 7, TURL, "test.com:123:::1,192.0.2.1,::2,::3", CURL_IPRESOLVE_WHATEVER,
-     500,  600,        200, 200,     0,  3,      350,  800,  R_FAIL, "v6" },
+    500,  600,        200, 200,     0,  3,      350,  800,  R_FAIL, "v6" },
   /* mixed ip6+4, v6 starts, v4 never starts due to high HE, TIMEOUT */
   { 8, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_V4,
-     400,  150,        500, 500,     1,  0,      400,  600,  R_FAIL, NULL },
+    400,  150,        500, 500,     1,  0,      400,  600,  R_FAIL, NULL },
   /* mixed ip4+6, but only use v4, check it uses full connect timeout,
-     although another address of the 'wrong' family is availbale */
+     although another address of the 'wrong' family is available */
   { 9, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_V6,
-     400,  150,        500, 500,     0,  1,      400,  600,  R_FAIL, NULL },
+    400,  150,        500, 500,     0,  1,      400,  600,  R_FAIL, NULL },
   /* mixed ip4+6, but only use v6, check it uses full connect timeout,
-     although another address of the 'wrong' family is availbale */
+     although another address of the 'wrong' family is available */
 #endif
 };