summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2020-04-20 10:05:28 +0200
committerDaniel Gustafsson <daniel@yesql.se>2020-04-20 10:12:22 +0200
commit10822c652c5f4c4e979b847b18512b318e2301e9 (patch)
tree9d83b9ecc65380becee73709f29bc946bb154d77
parentbcd9813588e971212f139d614a77215f1602e066 (diff)
downloadcurl-10822c652c5f4c4e979b847b18512b318e2301e9.tar.gz
lib: fix typos in comments and errormessages
This fixes a few randomly spotted typos in recently merged code, most notably one in a userfacing errormessage the schannel code.
-rw-r--r--lib/mqtt.h2
-rw-r--r--lib/smtp.c6
-rw-r--r--lib/vtls/schannel.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/mqtt.h b/lib/mqtt.h
index 155fbd60a..41f7372ce 100644
--- a/lib/mqtt.h
+++ b/lib/mqtt.h
@@ -50,7 +50,7 @@ struct MQTT {
char *sendleftovers;
size_t nsend; /* size of sendleftovers */
- /* when receving */
+ /* when receiving */
size_t npacket; /* byte counter */
unsigned char firstbyte;
size_t remaining_length;
diff --git a/lib/smtp.c b/lib/smtp.c
index e1872871d..93e004d20 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1741,10 +1741,10 @@ static CURLcode smtp_parse_custom_request(struct connectdata *conn)
* Notes:
*
* Should a UTF-8 host name require conversion to IDN ACE and we cannot honor
- * that convertion then we shall return success. This allow the caller to send
+ * that conversion then we shall return success. This allow the caller to send
* the data to the server as a U-label (as per RFC-6531 sect. 3.2).
*
- * If an mailbox '@' seperator cannot be located then the mailbox is considered
+ * If an mailbox '@' separator cannot be located then the mailbox is considered
* to be either a local mailbox or an invalid mailbox (depending on what the
* calling function deems it to be) then the input will simply be returned in
* the address part with the host name being NULL.
@@ -1765,7 +1765,7 @@ static CURLcode smtp_parse_address(struct connectdata *conn, const char *fqma,
if(dup[length - 1] == '>')
dup[length - 1] = '\0';
- /* Extract the host name from the addresss (if we can) */
+ /* Extract the host name from the address (if we can) */
host->name = strpbrk(dup, "@");
if(host->name) {
*host->name = '\0';
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 96c1dbc67..dce6242da 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -679,7 +679,7 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
CERT_FIND_ANY, NULL, NULL);
if(client_certs[0] == NULL) {
- failf(data, "schannel: Failed to get certificat from file %s"
+ failf(data, "schannel: Failed to get certificate from file %s"
", last error is 0x%x",
data->set.ssl.cert, GetLastError());
CertCloseStore(cert_store, 0);