Fix typos in comments

This commit is contained in:
klemens 2017-04-01 17:14:29 +02:00 committed by Tim Rühsen
parent 02d40a4676
commit f381831d88
18 changed files with 26 additions and 26 deletions

View File

@ -1024,7 +1024,7 @@ convert_cleanup (void)
/* This table should really be merged with dl_file_url_map and
downloaded_html_files. This was originally a list, but I changed
it to a hash table beause it was actually taking a lot of time to
it to a hash table because it was actually taking a lot of time to
find things in it. */
static struct hash_table *downloaded_files_hash;

View File

@ -485,7 +485,7 @@ parse_set_cookie (const char *set_cookie, bool silent)
/* Check whether ADDR matches <digits>.<digits>.<digits>.<digits>.
We don't want to call network functions like inet_addr() because
all we need is a check, preferrably one that is small, fast, and
all we need is a check, preferably one that is small, fast, and
well-defined. */
static bool
@ -516,7 +516,7 @@ numeric_address_p (const char *addr)
psl on our own, if libpsl is compiled without a public suffix list,
fall back to using the original "tail matching" heuristic. Also if
libpsl is unable to convert the domain to lowercase, which means that
it doesnt have any runtime conversion support, we again fall back to
it doesn't have any runtime conversion support, we again fall back to
"tail matching" since libpsl states the results are unpredictable with
upper case strings.
*/

View File

@ -2129,7 +2129,7 @@ Removing file due to --delete-after in ftp_loop_internal():\n"));
}
/* Return the directory listing in a reusable format. The directory
is specifed in u->dir. */
is specified in u->dir. */
static uerr_t
ftp_get_listing (struct url *u, struct url *original_url, ccon *con,
struct fileinfo **f)

View File

@ -176,8 +176,8 @@ struct pool {
P->orig_size = P->size; \
} while (0)
/* Grow the pool to accomodate at least SIZE new bytes. If the pool
already has room to accomodate SIZE bytes of data, this is a no-op. */
/* Grow the pool to accommodate at least SIZE new bytes. If the pool
already has room to accommodate SIZE bytes of data, this is a no-op. */
#define POOL_GROW(p, increase) \
GROW_ARRAY ((p)->contents, (p)->size, (p)->tail + (increase), \

View File

@ -578,7 +578,7 @@ wgetrc_env_file_name (void)
return NULL;
}
/* Check for the existance of '$HOME/.wgetrc' and return its path
/* Check for the existence of '$HOME/.wgetrc' and return its path
if it exists and is set. */
char *
wgetrc_user_file_name (void)

View File

@ -255,7 +255,7 @@ idn_encode (const struct iri *i, const char *host)
if (!i->utf8_encode)
{
if (!remote_to_utf8 (i, host, &utf8_encoded))
return NULL; /* Nothing to encode or an error occured */
return NULL; /* Nothing to encode or an error occurred */
src = utf8_encoded;
}
else

View File

@ -532,7 +532,7 @@ log_set_flush (bool flush)
}
else
{
/* Reenable flushing. If anything was printed in no-flush mode,
/* Re-enable flushing. If anything was printed in no-flush mode,
flush the log now. */
if (needs_flushing)
logflush ();

View File

@ -580,7 +580,7 @@ run_with_timeout (double seconds, void (*fun) (void *), void *arg)
const char *
inet_ntop (int af, const void *src, char *dst, socklen_t cnt)
{
/* struct sockaddr can't accomodate struct sockaddr_in6. */
/* struct sockaddr can't accommodate struct sockaddr_in6. */
union {
struct sockaddr_in6 sin6;
struct sockaddr_in sin;

View File

@ -75,7 +75,7 @@ static struct progress_implementation implementations[] = {
static struct progress_implementation *current_impl;
static int current_impl_locked;
/* Progress implementation used by default. Can be overriden in
/* Progress implementation used by default. Can be overridden in
wgetrc or by the fallback one. */
#define DEFAULT_PROGRESS_IMPLEMENTATION "bar"

View File

@ -497,7 +497,7 @@ retrieve_tree (struct url *start_url_parsed, struct iri *pi)
if (file
&& (opt.delete_after
|| opt.spider /* opt.recursive is implicitely true */
|| opt.spider /* opt.recursive is implicitly true */
|| !acceptable (file)))
{
/* Either --delete-after was specified, or we loaded this
@ -698,7 +698,7 @@ download_child (const struct urlpos *upos, struct url *parent, int depth,
for directories (no file name to match) and for non-leaf HTMLs,
which can lead to other files that do need to be downloaded. (-p
automatically implies non-leaf because with -p we can, if
necesary, overstep the maximum depth to get the page requisites.) */
necessary, overstep the maximum depth to get the page requisites.) */
if (u->file[0] != '\0'
&& !(has_html_suffix_p (u->file)
/* The exception only applies to non-leaf HTMLs (but -p

View File

@ -1736,7 +1736,7 @@ numdigit (wgint number)
{
int cnt = 1;
if (number < 0)
++cnt; /* accomodate '-' */
++cnt; /* accommodate '-' */
while ((number /= 10) != 0)
++cnt;
return cnt;
@ -2336,7 +2336,7 @@ wget_base64_encode (const void *data, size_t length, char *dest)
/* Decode data from BASE64 (a null-terminated string) into memory
pointed to by DEST. DEST is assumed to be large enough to
accomodate the decoded data, which is guaranteed to be no more than
accommodate the decoded data, which is guaranteed to be no more than
3/4*strlen(base64).
Since DEST is assumed to contain binary data, it is not

View File

@ -4,7 +4,7 @@ Install Instructions:
================================================================================
This Test Suite exploits the Parallel Test Harness available in GNU Autotools.
Since it uses features from a relatively recent verion of Autotools, the minimum
Since it uses features from a relatively recent version of Autotools, the minimum
required version as been bumped up to 1.11.
Run the './configure' command to generate the Makefile and then run 'make check'
to execute the Test Suite. Use the '-j n' option with 'make check' to execute
@ -122,7 +122,7 @@ This would be very helpful to future contributors.
Each File in the Test must be represented as a WgetFile object. The WgetFile
Class has the following prototype:
WgetFile (str name, str contents, str timestamp, dict rules)
None except name is a mandatory paramter, one may pass only those parameters
None except name is a mandatory parameter, one may pass only those parameters
that are required by the File object.
The timestamp string should be in a format: "YYYY-MM-DD HH:MM:SS" in UTC zone.
@ -288,7 +288,7 @@ Some amount of work still remains to be done.
* Support parallel-wget branch
* Support to spawn multiple servers is already in place. Need to handle
multiple requests to a server simultaneously. Use THreading MixIn.
* SSL Tests. Use xyne's HTTPS server implemention
* SSL Tests. Use xyne's HTTPS server implementation
* Complete support for FTP Tests
* IRI Support. This shouldn't require much effort

View File

@ -5,7 +5,7 @@ from misc.wget_file import WgetFile
"""
This test ensures Wget's Basic Authorization Negotiation.
Also, we ensure that Wget saves the host after a successfull auth and
Also, we ensure that Wget saves the host after a successful auth and
doesn't wait for a challenge the second time.
"""
############# File Definitions ###############################################

View File

@ -5,7 +5,7 @@ from misc.wget_file import WgetFile
"""
This test ensures Wget's Basic Authorization Negotiation.
Also, we ensure that Wget saves the host after a successfull auth and
Also, we ensure that Wget saves the host after a successful auth and
doesn't wait for a challenge the second time.
"""
############# File Definitions ###############################################

View File

@ -63,7 +63,7 @@ class _Handler(BaseHTTPRequestHandler):
request. For each HTTP Request Command that the server should be capable of
responding to, there must exist a do_REQUESTNAME() method which details the
steps in which such requests should be processed. The rest of the methods
in this class are auxilliary methods created to help in processing certain
in this class are auxiliary methods created to help in processing certain
requests. """
def get_rule_list(self, name):
@ -98,7 +98,7 @@ class _Handler(BaseHTTPRequestHandler):
resource. Hence, we call the handle for processing PUT requests if the
resource requested does not already exist.
Currently, when the server recieves a POST request for a resource, we
Currently, when the server receives a POST request for a resource, we
simply append the body data to the existing file and return the new
file to the client. If the file does not exist, a new file is created
using the contents of the request body. """
@ -377,7 +377,7 @@ class _Handler(BaseHTTPRequestHandler):
def send_head(self, method):
""" Common code for GET and HEAD Commands.
This method is overriden to use the fileSys dict.
This method is overridden to use the fileSys dict.
The method variable contains whether this was a HEAD or a GET Request.
According to RFC 2616, the server should not differentiate between

View File

@ -27,7 +27,7 @@ my %urls = (
code => "200",
msg => "You want fries with that?",
headers => {
# HTTP header preceeds http-equiv, simply just omit it here
# HTTP header preceds http-equiv, simply just omit it here
#'Content-Type' => 'text/html; charset=UTF-8',
},
content => $starter_file,

View File

@ -152,7 +152,7 @@ sub run
$errcode >>= 8; # XXX: should handle abnormal error codes.
# Shutdown server
# if we didn't explicitely kill the server, we would have to call
# if we didn't explicitly kill the server, we would have to call
# waitpid ($pid, 0) here in order to wait for the child process to
# terminate
kill 'TERM', $pid;

View File

@ -240,7 +240,7 @@
RMS parameter values by default: BLOCK_COUNT = 127, BUFFER_COUNT = 2,
EXTEND_QUANTITY = 16384.
The user may overide these values by specifying different (non-zero)
The user may override these values by specifying different (non-zero)
values for these parameters using the SET RMS_DEFAULT command.
3 File_attributes