]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cleanup: comment typos
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Feb 2020 14:18:38 +0000 (15:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Feb 2020 07:38:00 +0000 (08:38 +0100)
Spotted by 'codespell'

Closes #4957

lib/cookie.c
lib/setopt.c
lib/vssh/libssh.c
lib/vssh/libssh2.c
src/tool_cb_hdr.c

index 2dfdc733f6daebe1cf9f3de9bd073ed217e0b809..cf18745bc84598dc17255c5b11e19d59d7a6e586 100644 (file)
@@ -1048,7 +1048,7 @@ Curl_cookie_add(struct Curl_easy *data,
 
         *clist = *co;  /* then store all the new data */
 
-        free(co);   /* free the newly alloced memory */
+        free(co);   /* free the newly allocated memory */
         co = clist; /* point to the previous struct instead */
 
         /* We have replaced a cookie, now skip the rest of the list but
index 5a8ccac28f54b67295754eb999ff21a8fa60f51b..2e494a6df91a22c056530fc8d630841a98f19f96 100644 (file)
@@ -2288,7 +2288,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
 
   case CURLOPT_SSH_KEYFUNCTION:
     /* setting to NULL is fine since the ssh.c functions themselves will
-       then rever to use the internal default */
+       then revert to use the internal default */
     data->set.ssh_keyfunc = va_arg(param, curl_sshkeycallback);
     break;
 
index 62a7f1960c6a89310784e18c38f7a4ed0864d3c5..f66db318dc6799b5a606698bbd26847c5af7e824 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2017 - 2019 Red Hat, Inc.
+ * Copyright (C) 2017 - 2020 Red Hat, Inc.
  *
  * Authors: Nikos Mavrogiannopoulos, Tomas Mraz, Stanislav Zidek,
  *          Robert Kolcun, Andreas Schneider
@@ -1586,7 +1586,6 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
             return CURLE_BAD_DOWNLOAD_RESUME;
           }
         }
-        /* Does a completed file need to be seeked and started or closed ? */
         /* Now store the number of bytes we are expected to download */
         data->req.size = size - data->state.resume_from;
         data->req.maxdownload = size - data->state.resume_from;
index 92cb6513287bb1abb8421764f679be5d60d5d268..8e043747e769bb1d719b3d3ec1165a338464e759 100644 (file)
@@ -2381,7 +2381,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
             return CURLE_BAD_DOWNLOAD_RESUME;
           }
         }
-        /* Does a completed file need to be seeked and started or closed ? */
         /* Now store the number of bytes we are expected to download */
         data->req.size = attrs.filesize - data->state.resume_from;
         data->req.maxdownload = attrs.filesize - data->state.resume_from;
index 30d7c99aedc055da3ccf1d03c45b341c1fd5bf40..3b10238886690e4801eea986dd38bea8cd79305e 100644 (file)
@@ -109,7 +109,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
       size_t etag_length = 0;
 
       etag_h = ptr;
-      /* point to first occurence of double quote */
+      /* point to first occurrence of double quote */
       first = memchr(etag_h, '\"', cb);
 
       /*
@@ -127,7 +127,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
         first++;
       }
 
-      /* point to last occurence of double quote */
+      /* point to last occurrence of double quote */
       last = memchr(first, '\"', cb);
 
       if(!last) {