summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2018-12-28 18:58:15 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2018-12-28 18:58:15 +0100
commitfdb7fe613c3b0ebe28b67823551f231856917c4d (patch)
treebff4fb9114b47bff97ea32aadc521948d333f89a
parentc0427ebf3cf72f6f6c2a07053e4c9c01c30e99b0 (diff)
downloadwget-fdb7fe613c3b0ebe28b67823551f231856917c4d.tar.gz
Fix typos detected by codespell (via contrib/spell-checker)
-rw-r--r--configure.ac2
-rw-r--r--doc/metalink-standard.txt2
-rw-r--r--doc/wget.texi8
-rw-r--r--src/connect.c4
-rw-r--r--src/convert.c4
-rw-r--r--src/cookies.c2
-rw-r--r--src/ftp-basic.c2
-rw-r--r--src/ftp-ls.c2
-rw-r--r--src/hash.c2
-rw-r--r--src/http.c10
-rw-r--r--src/mswindows.h2
-rw-r--r--src/progress.c2
-rw-r--r--src/utils.c2
-rw-r--r--src/warc.c2
-rwxr-xr-xtestenv/Test-Content-disposition.py4
-rw-r--r--testenv/certs/ca-template.cfg2
-rw-r--r--testenv/certs/server-template.cfg2
-rw-r--r--testenv/server/http/http_server.py2
-rwxr-xr-xtests/Test-idn-meta.px2
19 files changed, 29 insertions, 29 deletions
diff --git a/configure.ac b/configure.ac
index 167882f4..f127c639 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ dnl
AM_INIT_AUTOMAKE([1.9])
dnl
-dnl Get cannonical host
+dnl Get canonical host
dnl
AC_CANONICAL_HOST
AC_DEFINE_UNQUOTED([OS_TYPE], "$host_os",
diff --git a/doc/metalink-standard.txt b/doc/metalink-standard.txt
index d54e83e8..12d8bcd0 100644
--- a/doc/metalink-standard.txt
+++ b/doc/metalink-standard.txt
@@ -106,7 +106,7 @@ found unsafe too, the file is not downloaded.
See [1 #section-1.1].
-cat > bugus.meta4 << EOF
+cat > bogus.meta4 << EOF
<?xml version="1.0" encoding="UTF-8"?>
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
<file name="/dir/A/File1">
diff --git a/doc/wget.texi b/doc/wget.texi
index a6cb15ea..a7d96d35 100644
--- a/doc/wget.texi
+++ b/doc/wget.texi
@@ -1817,7 +1817,7 @@ Set the cipher list string. Typically this string sets the
cipher suites and other SSL/TLS options that the user wish should be used, in a
set order of preference (GnuTLS calls it 'priority string'). This string
will be fed verbatim to the SSL/TLS engine (OpenSSL or GnuTLS) and hence
-its format and syntax is dependant on that. Wget will not process or manipulate it
+its format and syntax is dependent on that. Wget will not process or manipulate it
in any way. Refer to the OpenSSL or GnuTLS documentation for more information.
@cindex SSL certificate, check
@@ -2005,7 +2005,7 @@ the same time over the HSTS database. Before dumping the updated HSTS entries
on the file, Wget will re-read it and merge the changes.
Using a custom HSTS database and/or modifying an existing one is discouraged.
-For more information about the potential security threats arised from such practice,
+For more information about the potential security threats arose from such practice,
see section 14 "Security Considerations" of RFC 6797, specially section 14.9
"Creative Manipulation of HSTS Policy Store".
@end table
@@ -4198,7 +4198,7 @@ from the debug log before sending it to the bug address. The
@code{-d} won't go out of its way to collect sensitive information,
but the log @emph{will} contain a fairly complete transcript of Wget's
communication with the server, which may include passwords and pieces
-of downloaded data. Since the bug address is publically archived, you
+of downloaded data. Since the bug address is publicly archived, you
may assume that all bug reports are visible to the public.
@item
@@ -4447,7 +4447,7 @@ Tomislav Petrović, Mario Mikočević---many bug reports and
suggestions.
@item
-François Pinard---many thorough bug reports and discussions.
+Françis Pinard---many thorough bug reports and discussions.
@item
Karl Eichwalder---lots of help with internationalization, Makefile
diff --git a/src/connect.c b/src/connect.c
index 37dae215..0149cc7b 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -70,7 +70,7 @@ as that of the covered work. */
# endif
#endif /* ENABLE_IPV6 */
-/* Fill SA as per the data in IP and PORT. SA shoult point to struct
+/* Fill SA as per the data in IP and PORT. SA should point to struct
sockaddr_storage if ENABLE_IPV6 is defined, to struct sockaddr_in
otherwise. */
@@ -714,7 +714,7 @@ select_fd (int fd, double maxtime, int wait_for)
return result;
}
-/* Return true iff the connection to the remote site established
+/* Return true if the connection to the remote site established
through SOCK is still open.
Specifically, this function returns true if SOCK is not ready for
diff --git a/src/convert.c b/src/convert.c
index 8cacbfbc..a64fd056 100644
--- a/src/convert.c
+++ b/src/convert.c
@@ -255,9 +255,9 @@ convert_links (const char *file, struct urlpos *links)
write_backup_file (file, downloaded_file_return);
/* Before opening the file for writing, unlink the file. This is
- important if the data in FM is mmaped. In such case, nulling the
+ important if the data in FM is mapped. In such case, nulling the
file, which is what fopen() below does, would make us read all
- zeroes from the mmaped region. */
+ zeroes from the mapped region. */
if (unlink (file) < 0 && errno != ENOENT)
{
logprintf (LOG_NOTQUIET, _("Unable to delete %s: %s\n"),
diff --git a/src/cookies.c b/src/cookies.c
index ea4c7de5..d714823f 100644
--- a/src/cookies.c
+++ b/src/cookies.c
@@ -900,7 +900,7 @@ path_matches (const char *full_path, const char *prefix)
return len + 1;
}
-/* Return true iff COOKIE matches the provided parameters of the URL
+/* Return true if COOKIE matches the provided parameters of the URL
being downloaded: HOST, PORT, PATH, and SECFLAG.
If PATH_GOODNESS is non-NULL, store the "path goodness" value
diff --git a/src/ftp-basic.c b/src/ftp-basic.c
index bc129f6a..239fae47 100644
--- a/src/ftp-basic.c
+++ b/src/ftp-basic.c
@@ -904,7 +904,7 @@ ftp_epsv (int csock, ip_address *ip, int *port)
for (tport = 0, i = 0; i < 5 && c_isdigit (*s); i++, s++)
tport = (*s - '0') + 10 * tport;
- /* Make sure that the response terminates correcty */
+ /* Make sure that the response terminates correctly */
if (*s++ != delim)
{
xfree (respline);
diff --git a/src/ftp-ls.c b/src/ftp-ls.c
index d92e59b4..53a70240 100644
--- a/src/ftp-ls.c
+++ b/src/ftp-ls.c
@@ -994,7 +994,7 @@ ftp_parse_vms_ls (FILE *fp)
/* This function switches between the correct parsing routine depending on
the SYSTEM_TYPE. The system type should be based on the result of the
- "SYST" response of the FTP server. According to this repsonse we will
+ "SYST" response of the FTP server. According to this response we will
use on of the three different listing parsers that cover the most of FTP
servers used nowadays. */
diff --git a/src/hash.c b/src/hash.c
index 5e48fc70..a1b23dcf 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -199,7 +199,7 @@ struct hash_table {
being HASHFUN. */
#define HASH_POSITION(key, hashfun, size) ((hashfun) (key) % size)
-/* Find a prime near, but greather than or equal to SIZE. The primes
+/* Find a prime near, but greater than or equal to SIZE. The primes
are looked up from a table with a selection of primes convenient
for this purpose.
diff --git a/src/http.c b/src/http.c
index a01fc573..77732454 100644
--- a/src/http.c
+++ b/src/http.c
@@ -388,7 +388,7 @@ request_send (const struct request *req, int fd, FILE *warc_tmp)
}
/* Release the resources used by REQ.
- It is safe to call it with a vaild pointer to a NULL pointer.
+ It is safe to call it with a valid pointer to a NULL pointer.
It is not safe to call it with an invalid or NULL pointer. */
static void
@@ -1077,7 +1077,7 @@ modify_param_name (param_token *name)
return result;
}
-/* extract_param extract the paramater value into VALUE.
+/* extract_param extract the parameter value into VALUE.
Like modify_param_name this function modifies VALUE by
stripping off the encoding information from the actual value
*/
@@ -1355,7 +1355,7 @@ static struct {
char *host;
int port;
- /* Whether a ssl handshake has occoured on this connection. */
+ /* Whether a ssl handshake has occurred on this connection. */
bool ssl;
/* Whether the connection was authorized. This is only done by
@@ -5365,8 +5365,8 @@ test_parse_content_disposition (void)
{ "attachment; filename=\"file.ext\"", "file.ext", true },
{ "attachment; filename=\"file.ext\"; dummy", "file.ext", true },
{ "attachment", NULL, false },
- { "attachement; filename*=UTF-8'en-US'hello.txt", "hello.txt", true },
- { "attachement; filename*0=\"hello\"; filename*1=\"world.txt\"",
+ { "attachment; filename*=UTF-8'en-US'hello.txt", "hello.txt", true },
+ { "attachment; filename*0=\"hello\"; filename*1=\"world.txt\"",
"helloworld.txt", true },
{ "attachment; filename=\"A.ext\"; filename*=\"B.ext\"", "B.ext", true },
{ "attachment; filename*=\"A.ext\"; filename*0=\"B\"; filename*1=\"B.ext\"",
diff --git a/src/mswindows.h b/src/mswindows.h
index 17f647f5..4e9719ea 100644
--- a/src/mswindows.h
+++ b/src/mswindows.h
@@ -48,7 +48,7 @@ as that of the covered work. */
# define EAI_SYSTEM -1 /* value doesn't matter */
#endif
-/* Declares file access functions, such as open, creat, access, and
+/* Declares file access functions, such as open, create, access, and
chmod. Unix declares these in unistd.h and fcntl.h. */
#include <io.h>
diff --git a/src/progress.c b/src/progress.c
index 3d8ba535..c6c5e395 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -736,7 +736,7 @@ update_speed_ring (struct bar_progress *bp, wgint howmuch, double dltime)
if (bp->stalled)
{
bp->stalled = false;
- /* "recent_age" includes the entired stalled period, which
+ /* "recent_age" includes the entire stalled period, which
could be very long. Don't update the speed ring with that
value because the current bandwidth would start too small.
Start with an arbitrary (but more reasonable) time value and
diff --git a/src/utils.c b/src/utils.c
index 2289a47d..a07065d3 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -616,7 +616,7 @@ file_non_directory_p (const char *path)
}
/* Return the size of file named by FILENAME, or -1 if it cannot be
- opened or seeked into. */
+ opened or sought into. */
wgint
file_size (const char *filename)
{
diff --git a/src/warc.c b/src/warc.c
index 2eb74966..d5bc6008 100644
--- a/src/warc.c
+++ b/src/warc.c
@@ -490,7 +490,7 @@ warc_sha1_stream_with_payload (FILE *stream, void *res_block, void *res_payload,
if (n == 0)
{
- /* Check for the error flag IFF N == 0, so that we don't
+ /* Check for the error flag IF N == 0, so that we don't
exit the loop after a partial read due to e.g., EAGAIN
or EWOULDBLOCK. */
if (ferror (stream))
diff --git a/testenv/Test-Content-disposition.py b/testenv/Test-Content-disposition.py
index d5177a7f..3ee7be86 100755
--- a/testenv/Test-Content-disposition.py
+++ b/testenv/Test-Content-disposition.py
@@ -19,7 +19,7 @@ File1 = """All that is gold does not glitter,
File1_rules = {
"SendHeader" : {
- "Content-Disposition" : "Attachment; filename=JRR.Tolkein"
+ "Content-Disposition" : "Attachment; filename=JRR.Tolkien"
}
}
A_File = WgetFile ("LOTR", File1, rules=File1_rules)
@@ -30,7 +30,7 @@ WGET_URLS = [["LOTR"]]
Files = [[A_File]]
ExpectedReturnCode = 0
-ExpectedDownloadedFiles = [WgetFile ("JRR.Tolkein", File1)]
+ExpectedDownloadedFiles = [WgetFile ("JRR.Tolkien", File1)]
################ Pre and Post Test Hooks #####################################
pre_test = {
diff --git a/testenv/certs/ca-template.cfg b/testenv/certs/ca-template.cfg
index 69675923..087cd707 100644
--- a/testenv/certs/ca-template.cfg
+++ b/testenv/certs/ca-template.cfg
@@ -188,7 +188,7 @@ crl_signing_key
# and store them in the real certificate.
honor_crq_extensions
-# Path length contraint. Sets the maximum number of
+# Path length constraint. Sets the maximum number of
# certificates that can be used to certify this certificate.
# (i.e. the certificate chain length)
#path_len = -1
diff --git a/testenv/certs/server-template.cfg b/testenv/certs/server-template.cfg
index e3f135b1..00389aa0 100644
--- a/testenv/certs/server-template.cfg
+++ b/testenv/certs/server-template.cfg
@@ -187,7 +187,7 @@ tls_www_server
# and store them in the real certificate.
honor_crq_extensions
-# Path length contraint. Sets the maximum number of
+# Path length constraint. Sets the maximum number of
# certificates that can be used to certify this certificate.
# (i.e. the certificate chain length)
#path_len = -1
diff --git a/testenv/server/http/http_server.py b/testenv/server/http/http_server.py
index 6d8fc9e8..2cc82fb9 100644
--- a/testenv/server/http/http_server.py
+++ b/testenv/server/http/http_server.py
@@ -68,7 +68,7 @@ class _Handler(BaseHTTPRequestHandler):
def get_rule_list(self, name):
return self.rules.get(name)
- # The defailt protocol version of the server we run is HTTP/1.1 not
+ # The default protocol version of the server we run is HTTP/1.1 not
# HTTP/1.0 which is the default with the http.server module.
protocol_version = 'HTTP/1.1'
diff --git a/tests/Test-idn-meta.px b/tests/Test-idn-meta.px
index 702782a4..e7b28454 100755
--- a/tests/Test-idn-meta.px
+++ b/tests/Test-idn-meta.px
@@ -27,7 +27,7 @@ my %urls = (
code => "200",
msg => "You want fries with that?",
headers => {
- # HTTP header preceds http-equiv, simply just omit it here
+ # HTTP header precedes http-equiv, simply just omit it here
#'Content-Type' => 'text/html; charset=UTF-8',
},
content => $starter_file,