]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: fix typos
authorFabian Keil <fk@fabiankeil.de>
Thu, 7 Jan 2021 20:11:17 +0000 (21:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jan 2021 14:12:25 +0000 (15:12 +0100)
Bug: https://curl.se/mail/lib-2021-01/0063.html
Closes #6434

docs/HYPER.md
lib/curl_addrinfo.c
lib/hsts.c
lib/http.c
lib/krb5.c
lib/vtls/openssl.c
tests/runtests.pl

index 2562cb7634b81152ac00130caf969c79b78cf4e4..112d040ba5052805f6dd8fa61bca969cdcb452e4 100644 (file)
@@ -39,7 +39,7 @@ Build curl to use hyper's C API:
 Hyper is a low level HTTP transport library. curl itself provides all HTTP
 headers and Hyper provides all received headers back to curl.
 
-Therefore, msost of the "header logic" in curl as in responding to and acting
+Therefore, most of the "header logic" in curl as in responding to and acting
 on specific input and output headers are done the same way in curl code.
 
 The API in Hyper delivers received HTTP headers as (cleaned up) name=value
index 872395b05a1c2172a868823f1eef3376965d65a9..0cd48fb5c6e8cb6a697fbb31f818c6d3bb478cc2 100644 (file)
@@ -285,7 +285,7 @@ Curl_he2ai(const struct hostent *he, int port)
 #endif
       ss_size = sizeof(struct sockaddr_in);
 
-    /* allocate memory to told the struct, the address and the name */
+    /* allocate memory to hold the struct, the address and the name */
     ai = calloc(1, sizeof(struct Curl_addrinfo) + ss_size + namelen);
     if(!ai) {
       result = CURLE_OUT_OF_MEMORY;
index 6f771284ff8be3afd3723d91e4245366fa5701ca..336dffa1b76ddfe663d3c64e497ee1341768d591 100644 (file)
@@ -325,7 +325,7 @@ CURLcode Curl_hsts_save(struct Curl_easy *data, struct hsts *h,
     /* no cache activated */
     return CURLE_OK;
 
-  /* if not new name is given, use the one we stored from the load */
+  /* if no new name is given, use the one we stored from the load */
   if(!file && h->filename)
     file = h->filename;
 
@@ -457,7 +457,7 @@ static CURLcode hsts_pull(struct Curl_easy *data, struct hsts *h)
  * format is documented here:
  * https://github.com/curl/curl/wiki/HSTS
  *
- * This function only returns error on major problems that prevents hsts
+ * This function only returns error on major problems that prevent hsts
  * handling to work completely. It will ignore individual syntactical errors
  * etc.
  */
index 8bee326f4b09a3b21f0d5de176663ecc2b65407d..1794f43a2ce915bde89097dd37b6176b85b4af4c 100644 (file)
@@ -1258,7 +1258,9 @@ CURLcode Curl_buffer_send(struct dynbuf *in,
   }
   else {
 #ifdef CURLDEBUG
-    /* Allow debug builds override this logic to force short initial sends */
+    /* Allow debug builds to override this logic to force short initial
+       sends
+     */
     char *p = getenv("CURL_SMALLREQSEND");
     if(p) {
       size_t altsize = (size_t)strtoul(p, NULL, 10);
@@ -2914,7 +2916,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
   const char *p_accept;      /* Accept: string */
 
   /* Always consider the DO phase done after this function call, even if there
-     may be parts of the request that is not yet sent, since we can deal with
+     may be parts of the request that are not yet sent, since we can deal with
      the rest of the request in the PERFORM phase. */
   *done = TRUE;
 
@@ -3019,7 +3021,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
     /* When we are to insert a TE: header in the request, we must also insert
        TE in a Connection: header, so we need to merge the custom provided
        Connection: header and prevent the original to get sent. Note that if
-       the user has inserted his/hers own TE: header we don't do this magic
+       the user has inserted his/her own TE: header we don't do this magic
        but then assume that the user will handle it all! */
     char *cptr = Curl_checkheaders(conn, "Connection");
 #define TE_HEADER "TE: gzip\r\n"
index 66394f4f302a4eadc161ec96a65b68b82b0e849c..269d026e4b83ca39246ecf2bea8ca01b99065635 100644 (file)
@@ -776,7 +776,7 @@ static int sec_set_protection_level(struct connectdata *conn)
     }
   }
 
-  /* Now try to negiociate the protection level. */
+  /* Now try to negotiate the protection level. */
   code = ftp_send_command(conn, "PROT %c", level_to_char(level));
 
   if(code < 0)
index dfb5ed54d5fb5246723496116d0b6315b4e0120d..5e0eef8ad7f9ae70405764fa66a4a6f8880c5f25 100644 (file)
@@ -1871,7 +1871,7 @@ static CURLcode verifystatus(struct connectdata *conn,
   /* Compute the certificate's ID */
   cert = SSL_get_peer_certificate(backend->handle);
   if(!cert) {
-    failf(data, "Error getting peer certficate");
+    failf(data, "Error getting peer certificate");
     result = CURLE_SSL_INVALIDCERTSTATUS;
     goto end;
   }
index 0e0e26c3ca273c1bc4c0463de98568fe93c2f522..7d59de84b4a76a90d34da1b91ffd20a53a93a74f 100755 (executable)
@@ -2252,7 +2252,7 @@ sub runsshserver {
 }
 
 #######################################################################
-# Start the socks server
+# Start the MQTT server
 #
 sub runmqttserver {
     my ($id, $verbose, $ipv6) = @_;