summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2022-08-31 14:31:01 +0000
committerViktor Szakats <commit@vsz.me>2022-08-31 14:31:01 +0000
commitc9061f242b99862bd32ce1ae3fefa1629a614bc1 (patch)
treed29584ee266e01e7b9d59e576710571df2144776 /lib
parentf2daef6ad486a36568cee97674757b5f24f511bc (diff)
downloadcurl-c9061f242b99862bd32ce1ae3fefa1629a614bc1.tar.gz
misc: spelling fixes
Found using codespell 2.2.1. Also delete the redundant protocol designator from an archive.org URL. Reviewed-by: Daniel Stenberg Closes #9403
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
-rw-r--r--lib/imap.c4
-rw-r--r--lib/multi.c2
-rw-r--r--lib/url.c6
-rw-r--r--lib/urlapi.c2
-rw-r--r--lib/vauth/vauth.h2
-rw-r--r--lib/vquic/msh3.c4
-rw-r--r--lib/vtls/schannel.c4
8 files changed, 14 insertions, 12 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index bb94520ac..66f1f7d4b 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -584,7 +584,7 @@ bool Curl_host_is_ipnum(const char *hostname)
}
-/* return TRUE if 'part' is a case insentive tail of 'full' */
+/* return TRUE if 'part' is a case insensitive tail of 'full' */
static bool tailmatch(const char *full, const char *part)
{
size_t plen = strlen(part);
diff --git a/lib/imap.c b/lib/imap.c
index 12ee2a47e..ffa08bf7a 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1886,8 +1886,8 @@ static char *imap_atom(const char *str, bool escape_only)
*/
static bool imap_is_bchar(char ch)
{
- /* Peforming the alnum check with this macro is faster because of ASCII
- artihmetic */
+ /* Performing the alnum check with this macro is faster because of ASCII
+ arithmetic */
if(ISALNUM(ch))
return true;
diff --git a/lib/multi.c b/lib/multi.c
index 5340a0c8a..6e41fb274 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -851,7 +851,7 @@ CURLMcode curl_multi_remove_handle(struct Curl_multi *multi,
Curl_detach_connection(data);
if(data->set.connect_only && !data->multi_easy) {
- /* This removes a handle that was part the multi inteface that used
+ /* This removes a handle that was part the multi interface that used
CONNECT_ONLY, that connection is now left alive but since this handle
has bits.close set nothing can use that transfer anymore and it is
forbidden from reuse. And this easy handle cannot find the connection
diff --git a/lib/url.c b/lib/url.c
index bfc784ff3..9759f08ad 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -955,14 +955,16 @@ socks_proxy_info_matches(const struct proxy_info *data,
see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1 */
if(!data->user != !needle->user)
return FALSE;
- /* curl_strequal does a case insentive comparison, so do not use it here! */
+ /* curl_strequal does a case insensitive comparison,
+ so do not use it here! */
if(data->user &&
needle->user &&
strcmp(data->user, needle->user) != 0)
return FALSE;
if(!data->passwd != !needle->passwd)
return FALSE;
- /* curl_strequal does a case insentive comparison, so do not use it here! */
+ /* curl_strequal does a case insensitive comparison,
+ so do not use it here! */
if(data->passwd &&
needle->passwd &&
strcmp(data->passwd, needle->passwd) != 0)
diff --git a/lib/urlapi.c b/lib/urlapi.c
index dee4b5aa0..1e8046b74 100644
--- a/lib/urlapi.c
+++ b/lib/urlapi.c
@@ -1675,7 +1675,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
if(appendquery) {
/* Append the string onto the old query. Add a '&' separator if none is
- present at the end of the exsting query already */
+ present at the end of the existing query already */
size_t querylen = u->query ? strlen(u->query) : 0;
bool addamperand = querylen && (u->query[querylen -1] != '&');
if(querylen) {
diff --git a/lib/vauth/vauth.h b/lib/vauth/vauth.h
index 1c4b5b5dc..ec3b7db81 100644
--- a/lib/vauth/vauth.h
+++ b/lib/vauth/vauth.h
@@ -224,7 +224,7 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
CURLcode Curl_auth_create_spnego_message(struct negotiatedata *nego,
char **outptr, size_t *outlen);
-/* This is used to clean up the SPNEGO specifiec data */
+/* This is used to clean up the SPNEGO specific data */
void Curl_auth_cleanup_spnego(struct negotiatedata *nego);
#endif /* USE_SPNEGO */
diff --git a/lib/vquic/msh3.c b/lib/vquic/msh3.c
index e309be9df..dffa8a073 100644
--- a/lib/vquic/msh3.c
+++ b/lib/vquic/msh3.c
@@ -114,7 +114,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
socklen_t addrlen)
{
struct quicsocket *qs = &conn->hequic[sockindex];
- bool unsecure = !conn->ssl_config.verifypeer;
+ bool insecure = !conn->ssl_config.verifypeer;
memset(qs, 0, sizeof(*qs));
(void)sockfd;
@@ -132,7 +132,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
qs->conn = MsH3ConnectionOpen(qs->api,
conn->host.name,
(uint16_t)conn->remote_port,
- unsecure);
+ insecure);
if(!qs->conn) {
failf(data, "can't create msh3 connection");
if(qs->api) {
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 32abcaa74..9c138ef38 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -793,7 +793,7 @@ schannel_acquire_credential_handle(struct Curl_easy *data,
int crypto_settings_idx = 0;
- /* If TLS 1.3 ciphers are explictly listed, then
+ /* If TLS 1.3 ciphers are explicitly listed, then
* disable all the ciphers and re-enable which
* ciphers the user has provided.
*/
@@ -913,7 +913,7 @@ schannel_acquire_credential_handle(struct Curl_easy *data,
blocked_gcm_modes[0].MaximumLength = sizeof(BCRYPT_CHAIN_MODE_GCM);
blocked_gcm_modes[0].Buffer = (PWSTR)BCRYPT_CHAIN_MODE_GCM;
- /* if only one is disabled, then explictly disable the
+ /* if only one is disabled, then explicitly disable the
digest cipher suite (sha384 or sha256) */
if(disable_aes_gcm_sha384 != disable_aes_gcm_sha256) {
crypto_settings[crypto_settings_idx].eAlgorithmUsage =