Fix typos detected by codespell (via contrib/spell-checker)

This commit is contained in:
Tim Rühsen 2018-12-28 18:58:15 +01:00
parent c0427ebf3c
commit fdb7fe613c
19 changed files with 29 additions and 29 deletions

View File

@ -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",

View File

@ -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">

View File

@ -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

View File

@ -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

View File

@ -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"),

View File

@ -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

View File

@ -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);

View File

@ -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. */

View File

@ -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.

View File

@ -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\"",

View File

@ -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>

View File

@ -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

View File

@ -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)
{

View File

@ -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))

View File

@ -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 = {

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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,