diff options
author | Eddie Lumpkin <ewlumpkin@gmail.com> | 2021-10-22 18:59:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-22 22:53:44 +0200 |
commit | 8e701cc978430d638517d025fade2b0dc1ae9b73 (patch) | |
tree | b1cd344025e01067e65f720166e99e82f27eb7a0 /lib | |
parent | 83393b1a3613ec4e99502ff01ac936994841ced9 (diff) | |
download | curl-8e701cc978430d638517d025fade2b0dc1ae9b73.tar.gz |
lib: fixing comment spelling typos in lib files
Closes #7894
Signed-off-by: ewlumpkin <ewlumpkin@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asyn-ares.c | 2 | ||||
-rw-r--r-- | lib/krb5.c | 4 | ||||
-rw-r--r-- | lib/multi.c | 2 | ||||
-rw-r--r-- | lib/select.c | 2 | ||||
-rw-r--r-- | lib/smtp.c | 6 | ||||
-rw-r--r-- | lib/socks_gssapi.c | 4 | ||||
-rw-r--r-- | lib/socks_sspi.c | 2 | ||||
-rw-r--r-- | lib/tftp.c | 4 | ||||
-rw-r--r-- | lib/url.c | 2 | ||||
-rw-r--r-- | lib/urldata.h | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 763a4aaa0..fc168baa6 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -341,7 +341,7 @@ static int waitperform(struct Curl_easy *data, timediff_t timeout_ms) nfds = 0; if(!nfds) - /* Call ares_process() unconditonally here, even if we simply timed out + /* Call ares_process() unconditionally here, even if we simply timed out above, as otherwise the ares name resolve won't timeout! */ ares_process_fd((ares_channel)data->state.async.resolver, ARES_SOCKET_BAD, ARES_SOCKET_BAD); diff --git a/lib/krb5.c b/lib/krb5.c index bb2930151..afe425b04 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -684,7 +684,7 @@ int Curl_sec_read_msg(struct Curl_easy *data, struct connectdata *conn, (void) data; if(!conn->mech) - /* not inititalized, return error */ + /* not initialized, return error */ return -1; DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); @@ -768,7 +768,7 @@ static int sec_set_protection_level(struct Curl_easy *data) } } - /* Now try to negiociate the protection level. */ + /* Now try to negotiate the protection level. */ code = ftp_send_command(data, "PROT %c", level_to_char(level)); if(code < 0) diff --git a/lib/multi.c b/lib/multi.c index f31b25262..f307d63b9 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -2633,7 +2633,7 @@ CURLMcode curl_multi_cleanup(struct Curl_multi *multi) multi->magic = 0; /* not good anymore */ - /* Firsrt remove all remaining easy handles */ + /* First remove all remaining easy handles */ data = multi->easyp; while(data) { nextdata = data->next; diff --git a/lib/select.c b/lib/select.c index 52dca5a2c..70d7ee5c2 100644 --- a/lib/select.c +++ b/lib/select.c @@ -64,7 +64,7 @@ * Waiting indefinitely with this function is not allowed, a * zero or negative timeout value will return immediately. * Timeout resolution, accuracy, as well as maximum supported - * value is system dependent, neither factor is a citical issue + * value is system dependent, neither factor is a critical issue * for the intended use of this function in the library. * * Return values: diff --git a/lib/smtp.c b/lib/smtp.c index fdacefe55..8e0b04609 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -490,7 +490,7 @@ static CURLcode smtp_perform_authentication(struct Curl_easy *data) saslprogress progress; /* Check we have enough data to authenticate with, and the - server supports authentiation, and end the connect phase if not */ + server supports authentication, and end the connect phase if not */ if(!smtpc->auth_supported || !Curl_sasl_can_authenticate(&smtpc->sasl, conn)) { state(data, SMTP_STOP); @@ -527,7 +527,7 @@ static CURLcode smtp_perform_command(struct Curl_easy *data) if(smtp->rcpt) { /* We notify the server we are sending UTF-8 data if a) it supports the - SMTPUTF8 extension and b) The mailbox contains UTF-8 charaacters, in + SMTPUTF8 extension and b) The mailbox contains UTF-8 characters, in either the local address or host name parts. This is regardless of whether the host name is encoded using IDN ACE */ bool utf8 = FALSE; @@ -600,7 +600,7 @@ static CURLcode smtp_perform_mail(struct Curl_easy *data) struct connectdata *conn = data->conn; /* We notify the server we are sending UTF-8 data if a) it supports the - SMTPUTF8 extension and b) The mailbox contains UTF-8 charaacters, in + SMTPUTF8 extension and b) The mailbox contains UTF-8 characters, in either the local address or host name parts. This is regardless of whether the host name is encoded using IDN ACE */ bool utf8 = FALSE; diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c index 34bfa37d7..8ef2f8f37 100644 --- a/lib/socks_gssapi.c +++ b/lib/socks_gssapi.c @@ -257,7 +257,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, return CURLE_COULDNT_CONNECT; } - if(socksreq[1] != 1) { /* status / messgae type */ + if(socksreq[1] != 1) { /* status / message type */ failf(data, "Invalid GSS-API authentication response type (%d %d).", socksreq[0], socksreq[1]); gss_release_name(&gss_status, &server); @@ -452,7 +452,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, return CURLE_COULDNT_CONNECT; } - if(socksreq[1] != 2) { /* status / messgae type */ + if(socksreq[1] != 2) { /* status / message type */ failf(data, "Invalid GSS-API encryption response type (%d %d).", socksreq[0], socksreq[1]); gss_delete_sec_context(&gss_status, &gss_context, NULL); diff --git a/lib/socks_sspi.c b/lib/socks_sspi.c index cb225b9b5..ffc870346 100644 --- a/lib/socks_sspi.c +++ b/lib/socks_sspi.c @@ -277,7 +277,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, return CURLE_COULDNT_CONNECT; } - if(socksreq[1] != 1) { /* status / messgae type */ + if(socksreq[1] != 1) { /* status / message type */ failf(data, "Invalid SSPI authentication response type (%u %u).", (unsigned int)socksreq[0], (unsigned int)socksreq[1]); free(service_name); diff --git a/lib/tftp.c b/lib/tftp.c index aae997d0f..7e5246f01 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -1304,9 +1304,9 @@ static CURLcode tftp_doing(struct Curl_easy *data, bool *dophase_done) /********************************************************** * - * tftp_peform + * tftp_perform * - * Entry point for transfer from tftp_do, sarts state mach + * Entry point for transfer from tftp_do, starts state mach * **********************************************************/ static CURLcode tftp_perform(struct Curl_easy *data, bool *dophase_done) @@ -2780,7 +2780,7 @@ CURLcode Curl_parse_login_details(const char *login, const size_t len, size_t plen; size_t olen; - /* the input length check is because this is called directcly from setopt + /* the input length check is because this is called directly from setopt and isn't going through the regular string length check */ size_t llen = strlen(login); if(llen > CURL_MAX_INPUT_LENGTH) diff --git a/lib/urldata.h b/lib/urldata.h index 7a56688fe..22068882f 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -330,7 +330,7 @@ struct digestdata { char *opaque; char *qop; char *algorithm; - int nc; /* nounce count */ + int nc; /* nonce count */ BIT(stale); /* set true for re-negotiation */ BIT(userhash); #endif |