I recently updated my local curl repository and noticed
a couple of typos while reviewing the changes.

Attached are fixes for them.

Fabian
From 35e133d0a43379fcb24cb4e448fccf3e410b7540 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:11:17 +0100
Subject: [PATCH 1/9] docs/HYPER.md: fix typo

---
 docs/HYPER.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/HYPER.md b/docs/HYPER.md
index 2562cb763..112d040ba 100644
--- a/docs/HYPER.md
+++ b/docs/HYPER.md
@@ -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
-- 
2.30.0

From 9e37e21ac0ffa1f91a7fa7cc48554f434a2fe26f Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:11:44 +0100
Subject: [PATCH 2/9] lib: fix comment typo

---
 lib/curl_addrinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 872395b05..0cd48fb5c 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -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;
-- 
2.30.0

From d265cfbe4eb8ac5bf14252d9838d9950a4428334 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:11:57 +0100
Subject: [PATCH 3/9] lib: fix comment typos

---
 lib/hsts.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/hsts.c b/lib/hsts.c
index 6f771284f..336dffa1b 100644
--- a/lib/hsts.c
+++ b/lib/hsts.c
@@ -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.
  */
-- 
2.30.0

From 449903f034e22aec9b9b31a9e8b38b60aeaf57d4 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:15:13 +0100
Subject: [PATCH 4/9] lib/http.c: add missing 'to' in a comment

---
 lib/http.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index 8bee326f4..45f99c766 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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);
-- 
2.30.0

From 26acb63d37f26e3ebeacd8e1f88abdb6e450e2bc Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:25:26 +0100
Subject: [PATCH 5/9] lib/http.c: fix comment grammar

---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index 45f99c766..da550dd28 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2916,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;
 
-- 
2.30.0

From 437dfdf60a8e237a62dc6d5525a1675c5a8b76c2 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:27:44 +0100
Subject: [PATCH 6/9] lib/http.c: fix comment spelling

---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index da550dd28..1794f43a2 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3021,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"
-- 
2.30.0

From f506efbc143dcd0e2f56e67ad230d9205a4d9406 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 21:49:19 +0100
Subject: [PATCH 7/9] lib/krb5.c: fix spelling of 'negotiate' in a comment

---
 lib/krb5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/krb5.c b/lib/krb5.c
index 66394f4f3..269d026e4 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -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)
-- 
2.30.0

From 0f681cd4b51a06b846324be51532150e89942344 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Thu, 7 Jan 2021 23:09:37 +0100
Subject: [PATCH 8/9] runtests.pl: fix comment

---
 tests/runtests.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 0e0e26c3c..7d59de84b 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2252,7 +2252,7 @@ sub runsshserver {
 }
 
 #######################################################################
-# Start the socks server
+# Start the MQTT server
 #
 sub runmqttserver {
     my ($id, $verbose, $ipv6) = @_;
-- 
2.30.0

From caf725b6b71ba19d4330d55a1fbde1e26a95d967 Mon Sep 17 00:00:00 2001
From: Fabian Keil <f...@fabiankeil.de>
Date: Sat, 9 Jan 2021 14:28:27 +0100
Subject: [PATCH 9/9] lib/vtls/openssl.c: fix typo in an error message

---
 lib/vtls/openssl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index dfb5ed54d..5e0eef8ad 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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;
   }
-- 
2.30.0

Attachment: pgpBwkys7IBwU.pgp
Description: OpenPGP digital signature

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to