[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 136/282: cleanup: comment typos
From: |
gnunet |
Subject: |
[gnurl] 136/282: cleanup: comment typos |
Date: |
Wed, 01 Apr 2020 14:30:01 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 0c76795cafe0fccab41b3adc1be08cb81d55024f
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Feb 20 15:18:38 2020 +0100
cleanup: comment typos
Spotted by 'codespell'
Closes #4957
---
lib/cookie.c | 2 +-
lib/setopt.c | 2 +-
lib/vssh/libssh.c | 3 +--
lib/vssh/libssh2.c | 1 -
src/tool_cb_hdr.c | 4 ++--
5 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/lib/cookie.c b/lib/cookie.c
index 2dfdc733f..cf18745bc 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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
diff --git a/lib/setopt.c b/lib/setopt.c
index 5a8ccac28..2e494a6df 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -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;
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 62a7f1960..f66db318d 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -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;
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index 92cb65132..8e043747e 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -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;
diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c
index 30d7c99ae..3b1023888 100644
--- a/src/tool_cb_hdr.c
+++ b/src/tool_cb_hdr.c
@@ -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) {
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 133/282: HTTP-COOKIES: mention that a trailing newline is required, (continued)
- [gnurl] 133/282: HTTP-COOKIES: mention that a trailing newline is required, gnunet, 2020/04/01
- [gnurl] 130/282: SOCKS: fix typo in printf formatting, gnunet, 2020/04/01
- [gnurl] 127/282: altsvc: make saving the cache an atomic operation, gnunet, 2020/04/01
- [gnurl] 129/282: CURLOPT_REDIR_PROTOCOLS.3: update the DEFAULT section, gnunet, 2020/04/01
- [gnurl] 135/282: win32: USE_WIN32_CRYPTO to enable Win32 based MD4, MD5 and SHA256 functions, gnunet, 2020/04/01
- [gnurl] 142/282: md4: Fixed compilation issues when using GNU TLS gcrypt, gnunet, 2020/04/01
- [gnurl] 131/282: tool_util: Improve Windows version of tvnow(), gnunet, 2020/04/01
- [gnurl] 128/282: docs/GOVERNANCE: refreshed + added "donations" and "commercial support", gnunet, 2020/04/01
- [gnurl] 138/282: GnuTLS: Always send client cert, gnunet, 2020/04/01
- [gnurl] 134/282: connect: remove some spurious infof() calls, gnunet, 2020/04/01
- [gnurl] 136/282: cleanup: comment typos,
gnunet <=
- [gnurl] 139/282: gtls: fix the copyright year, gnunet, 2020/04/01
- [gnurl] 132/282: nit: Copyright year out of date, gnunet, 2020/04/01
- [gnurl] 137/282: github action: add CIFuzz, gnunet, 2020/04/01
- [gnurl] 141/282: RELEASE-NOTES: synced, gnunet, 2020/04/01
- [gnurl] 143/282: tests: Added a unit test for SHA256 digest generation, gnunet, 2020/04/01
- [gnurl] 144/282: digest: Corrected the name of the local HTTP digest function, gnunet, 2020/04/01
- [gnurl] 146/282: ntlm: Removed the dependency on the TLS libaries when using MD5, gnunet, 2020/04/01
- [gnurl] 147/282: test1610: Fixed the link to the unit test, gnunet, 2020/04/01
- [gnurl] 150/282: ntlm: Moved the HMAC MD5 function into the HMAC module as a generic function, gnunet, 2020/04/01
- [gnurl] 140/282: http2: now require nghttp2 >= 1.12.0, gnunet, 2020/04/01