]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: spelling fixes
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Mar 2022 08:49:05 +0000 (10:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Mar 2022 08:49:06 +0000 (10:49 +0200)
Mostly in comments but also in the -w documentation for headers_json.

Closes #8647

docs/cmdline-opts/write-out.d
lib/h2h3.c
lib/headers.c
lib/urlapi.c
lib/vtls/sectransp.c
src/tool_cb_wrt.c
src/tool_cfgable.h

index a8509137a46bce57e3859c381a2fb3b87a2b126c..bc47dc4ce5fc0f412b3bf1df7a16700ffb4bfadf 100644 (file)
@@ -62,7 +62,7 @@ are provided as arrays, since in the case of multiple headers there can be
 multiple values.
 
 The header names provided in lowercase, listed in order of appearance over the
-wire. Except for duplicated headers. They are grouped on the first occurance
+wire. Except for duplicated headers. They are grouped on the first occurrence
 of that header, each value is presented in the JSON array.
 .TP
 .B http_code
index cf8d156945d482425aaa2d94579621d82e257e70..c0ed58d37aa877a4bc45a6bbc592860e92341619 100644 (file)
@@ -114,7 +114,7 @@ static header_instruction inspect_header(const char *name, size_t namelen,
 }
 
 CURLcode Curl_pseudo_headers(struct Curl_easy *data,
-                             const char *mem, /* the requeset */
+                             const char *mem, /* the request */
                              const size_t len /* size of request */,
                              struct h2h3req **hp)
 {
index f32644cd4e1124ed75773f21523bce1807df7072..226c696be6b7186e538ee8bbae5ccd63dbf24f2b 100644 (file)
@@ -48,10 +48,10 @@ static void copy_header_external(struct Curl_easy *data,
   h->value = hs->value;
   h->amount = amount;
   h->index = index;
-  /* this will randomly OR a reverved bit for the sole purpose of making it
-     impossible for applications to do == comparisons, as that would
-     otherwise be very tempting and then lead the reserved bits not being
-     reserved anymore. */
+  /* this will randomly OR a reserved bit for the sole purpose of making it
+     impossible for applications to do == comparisons, as that would otherwise
+     be very tempting and then lead to the reserved bits not being reserved
+     anymore. */
   h->origin = hs->type | (1<<27);
   h->anchor = e;
 }
@@ -99,7 +99,7 @@ CURLHcode curl_easy_header(CURL *easy,
     return CURLHE_BADINDEX;
 
   if(nameindex == amount - 1)
-    /* if the last or only ocurrance is what's asked for, then we know it */
+    /* if the last or only occurrence is what's asked for, then we know it */
     hs = pick;
   else {
     for(e = data->state.httphdrs.head; e; e = e->next) {
index ff00ee424364ad1b64f689b7ea54c1c01f4674a5..99a0f692824908da9a70266413f7838b1697f556 100644 (file)
@@ -1144,7 +1144,7 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
 }
 
 /*
- * Parse the URL and, if successful, replace everyting in the Curl_URL struct.
+ * Parse the URL and, if successful, replace everything in the Curl_URL struct.
  */
 static CURLUcode parseurl_and_replace(const char *url, CURLU *u,
                                       unsigned int flags)
index b2e17272784f310c95931f01f9e485d90286106f..ca20b521210c897be774083782f84a293fb14f2e 100644 (file)
@@ -938,9 +938,9 @@ static OSStatus SocketWrite(SSLConnectionRef connection,
 #ifndef CURL_DISABLE_VERBOSE_STRINGS
 CF_INLINE const char *TLSCipherNameForNumber(SSLCipherSuite cipher)
 {
-  /* The first ciphers in the ciphertable are continuos. Here we do small
+  /* The first ciphers in the ciphertable are continuous. Here we do small
      optimization and instead of loop directly get SSL name by cipher number.
-   */
+  */
   if(cipher <= SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA) {
     return ciphertable[cipher].name;
   }
index 8d59d989c0d8a9f20d43f2990c43e5035b2225b1..46fe87934f0316c542d8a2404b55249894202606 100644 (file)
@@ -95,7 +95,7 @@ bool tool_create_output_file(struct OutStruct *outs,
       }
       memcpy(newname, fname, len);
       newname[len] = '.';
-      while(fd == -1 && /* haven't sucessfully opened a file */
+      while(fd == -1 && /* haven't successfully opened a file */
             (errno == EEXIST || errno == EISDIR) &&
             /* because we keep having files that already exist */
             next_num < 100 /* and we haven't reached the retry limit */ ) {
index e5c43583ea4d0258b6b2ab79004e1cef3b3f7589..9b6eed0c8bb448b8498f499a449faa8ae06276b8 100644 (file)
@@ -291,7 +291,7 @@ struct OperationConfig {
   bool disallow_username_in_url;  /* disallow usernames in URLs */
   char *aws_sigv4;
   enum {
-    CLOBBER_DEFAULT, /* Provides compatability with previous versions of curl,
+    CLOBBER_DEFAULT, /* Provides compatibility with previous versions of curl,
                         by using the default behavior for -o, -O, and -J.
                         If those options would have overwritten files, like
                         -o and -O would, then overwrite them. In the case of