Commit 3178560d authored by Rafael Fontenelle's avatar Rafael Fontenelle

Fix misspellings

parent 4657b5c2
Pipeline #41492646 passed with stages
in 27 minutes and 46 seconds
......@@ -30,7 +30,7 @@
# -b Skip trying to rebuild each program
# -n The name of the test to execute
#
# The specification for each program used in the comparitive Benchmarks is
# The specification for each program used in the comparative Benchmarks is
# defined in the `sources/' directory, with the filename: <program>.bench.sh.
# Each of these files should define the following:
#
......@@ -39,7 +39,7 @@
# - <PROGRAMNAME>_BIN="./relative/path/to/binary/from/source/dir"
# - <PROGRAMNAME>_BUILD(): Function that defines how to build a fresh copy of
# the source
# - <PROGRAMNAME>_VERSION(): Function to retreive the version of the built
# - <PROGRAMNAME>_VERSION(): Function to retrieve the version of the built
# source
#
# Do take a look at the files for Wget2 or Wget for an idea of how this is
......@@ -59,7 +59,7 @@
# the program specification are available in its namespace during execution:
#
# - An empty associative array called "test_OPTIONS". Which can be filled up
# with comand line options specific to this benchmark
# with command line options specific to this benchmark
# - KERNEL: A variable which contains the information about the currently
# running kernel. (uname -srmo)
# - PROC: A variable with information about the processor
......@@ -75,7 +75,7 @@ set -u
# Early exit if we are running in a Bash shell older than v4.
# This script relies on Bashisms which were introduced only in v4.
if ((BASH_VERSINFO[0] < 4)); then
echo "Sorry, you need atleast Bash v4 to run this script"
echo "Sorry, you need at least Bash v4 to run this script"
exit 1
fi
......@@ -108,7 +108,7 @@ popd() {
# get_source <program-name>
#
# Clone the prgram repository or update an existing repository
# Clone the program repository or update an existing repository
get_source() {
local program="$1"
local PROG="${1^^}"
......@@ -129,7 +129,7 @@ get_source() {
# Call the <PROGRAM-NAME>_BUILD() function which is defined in the program
# specification to compile the program. Any configure options or CFLAGS should
# be added to the program specification file. CFLAGS may optionally be exported
# before the invokation of this script.
# before the invocation of this script.
build_source() {
local program="$1"
local PROG="${1^^}"
......
......@@ -58,7 +58,7 @@ gl_INIT
LT_PREREQ([2.2])
LT_INIT([dlopen])
# Define these substitions here to keep all version information in one place.
# Define these substitutions here to keep all version information in one place.
# For information on how to properly maintain the library version information,
# refer to the libtool manual, section "Updating library version information":
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
......@@ -151,7 +151,7 @@ if test -n "$WARN_CFLAGS"; then
# We use a slightly smaller set of warning options for lib/.
# Remove the following and save the result in GNULIB_WARN_CFLAGS.
# Removing is not enough if these switches are implicitly set by other
# flags like -Wall or -Wextra. We have to explicitely unset them
# flags like -Wall or -Wextra. We have to explicitly unset them
# with -Wno-....
nw=
nw="$nw -Wpedantic"
......
......@@ -24,9 +24,9 @@ get_from() {
}
get_to() {
printf "Name of receipient: "
printf "Name of recipient: "
read -r TO_NAME
printf "Email of receipient: "
printf "Email of recipient: "
read -r TO_EMAIL
}
......
......@@ -524,7 +524,7 @@ Go to background immediately after startup. If no output file is specified via t
With `--progress=bar`, there are currently two possible parameters, `force` and `noscroll`.
When the output is not a TTY, the progress bar always falls back to "dot", even if `--progress=bar` was passed to
Wget2 during invokation. This behaviour can be overridden and the "bar" output forced by using the "force"
Wget2 during invocation. This behaviour can be overridden and the "bar" output forced by using the "force"
parameter as `--progress=bar:force`.
By default, the bar style progress bar scroll the name of the file from left to right for the file being
......@@ -663,7 +663,7 @@ Go to background immediately after startup. If no output file is specified via t
don't use proxies, even if the appropriate *_proxy environment variable is defined.
If a comma-separated list of exceptions (domains/IPs) is given, these exceptions are accessed without
usign a proxy. It overrides the 'no_proxy' environment variable.
using a proxy. It overrides the 'no_proxy' environment variable.
### `-Q quota`, `--quota=quota`
......@@ -927,7 +927,7 @@ Go to background immediately after startup. If no output file is specified via t
### `--fsync-policy`
Enables disk synching after each write (default: off).
Enables disk syncing after each write (default: off).
### `--http2-request-window=number`
......@@ -1507,7 +1507,7 @@ Go to background immediately after startup. If no output file is specified via t
database. Before dumping the updated HSTS entries on the file, Wget2 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, see section 14 "Security Considerations" of RFC 6797,
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".
### `--hsts-preload`
......@@ -1964,7 +1964,7 @@ Go to background immediately after startup. If no output file is specified via t
Note: please make sure to remove any potentially sensitive information from the debug log before sending it to
the bug address. The `-d` won't go out of its way to collect sensitive information, but the log will contain a
fairly complete transcript of Wget2's communication with the server, which may include passwords and pieces of
downloaded data. Since the bug address is publically archived, you may assume that all bug reports are visible
downloaded data. Since the bug address is publicly archived, you may assume that all bug reports are visible
to the public.
4. If Wget2 has crashed, try to run it in a debugger, e.g. ```gdb `which wget` core``` and type "where" to get the
......
......@@ -1113,7 +1113,7 @@ typedef struct wget_hsts_db_st wget_hsts_db_t;
* {
* my_hsts_db_t *hsts_db = (my_hsts_db_t *) parent_hsts_db;
*
* implemetation...
* implementation...
* }
*
* static int impl_save(wget_hsts_db_t *parent_hsts_db)
......@@ -1260,7 +1260,7 @@ typedef struct _wget_hpkp_st wget_hpkp_t;
* {
* my_hpkp_db_t *hpkp_db = (my_hpkp_db_t *) parent_hpkp_db;
*
* implemetation...
* implementation...
* }
*
* static int impl_save(wget_hpkp_db_t *parent_hpkp_db)
......@@ -1433,7 +1433,7 @@ typedef struct wget_ocsp_db_st wget_ocsp_db_t;
* {
* my_ocsp_db_t *ocsp_db = (my_ocsp_db_t *) parent_ocsp_db;
*
* implemetation...
* implementation...
* }
*
* static int impl_save(wget_ocsp_db_t *parent_ocsp_db)
......@@ -1521,7 +1521,7 @@ struct wget_ocsp_db_vtable {
};
struct wget_ocsp_db_st {
/// Pointer to the implemetation vtable
/// Pointer to the implementation vtable
struct wget_ocsp_db_vtable *vtable;
};
......@@ -2462,7 +2462,7 @@ typedef struct
* Prototype for the initializer function.
*
* \param[in] plugin The plugin handle
* \return Should return 0 if initialization succeded, or any other value to indicate failure.
* \return Should return 0 if initialization succeeded, or any other value to indicate failure.
* On failure, wget2 will continue without the plugin
* and will not call the finalizer function even if registered.
*/
......
......@@ -509,7 +509,7 @@ void wget_bar_slot_begin(wget_bar_t *bar, int slot, const char *filename, int ne
/**
* \param[in] bar Pointer to a wget_bar_t object
* \param[in] slot The slot number to use
* \param[in] nbytes The number of bytes downloaded since the last invokation of this function
* \param[in] nbytes The number of bytes downloaded since the last invocation of this function
*
* Set the current number of bytes for \p slot for the next update of
* the bar/slot.
......
......@@ -249,7 +249,7 @@ size_t wget_hpkp_get_n_pins(wget_hpkp_t *hpkp)
*
* Gets all the public key hashes added to the given HPKP database entry.
*
* The size of the arrays used must be atleast one returned by \ref wget_hpkp_get_n_pins "wget_hpkp_get_n_pins()".
* The size of the arrays used must be at least one returned by \ref wget_hpkp_get_n_pins "wget_hpkp_get_n_pins()".
*/
void wget_hpkp_get_pins_b64(wget_hpkp_t *hpkp, const char **pin_types, const char **pins_b64)
{
......@@ -272,7 +272,7 @@ void wget_hpkp_get_pins_b64(wget_hpkp_t *hpkp, const char **pin_types, const cha
*
* Gets all the public key hashes added to the given HPKP database entry.
*
* The size of the arrays used must be atleast one returned by \ref wget_hpkp_get_n_pins "wget_hpkp_get_n_pins()".
* The size of the arrays used must be at least one returned by \ref wget_hpkp_get_n_pins "wget_hpkp_get_n_pins()".
*/
void wget_hpkp_get_pins(wget_hpkp_t *hpkp, const char **pin_types, size_t *sizes, const void **pins)
{
......@@ -351,7 +351,7 @@ void wget_hpkp_db_deinit(wget_hpkp_db_t *hpkp_db)
* Closes and frees the HPKP database. A double pointer is required because this function will
* set the handle (pointer) to the HPKP database to NULL to prevent potential use-after-free conditions.
*
* Newly added entries will be lost unless commited to persistent storage using wget_hsts_db_save().
* Newly added entries will be lost unless committed to persistent storage using wget_hsts_db_save().
*
* If \p hpkp_db or the pointer it points to is NULL then this function does nothing.
*/
......
......@@ -227,7 +227,7 @@ void wget_hsts_db_deinit(wget_hsts_db_t *hsts_db)
*
* If `hsts_db` or pointer it points to is NULL, then the function does nothing.
*
* Newly added entries will be lost unless commited to persistent storage using wget_hsts_db_save().
* Newly added entries will be lost unless committed to persistent storage using wget_hsts_db_save().
*/
void wget_hsts_db_free(wget_hsts_db_t **hsts_db)
{
......@@ -409,7 +409,7 @@ static int _hsts_db_load(_hsts_db_impl_t *hsts_db_priv, FILE *fp)
/**
* \param[in] hsts_db An HSTS database
* \return 0 if the operation succeded, -1 in case of error
* \return 0 if the operation succeeded, -1 in case of error
*
* Performs all operations necessary to access the HSTS database entries from persistent storage
* using wget_hsts_host_match() for example.
......@@ -470,7 +470,7 @@ static int _hsts_db_save(void *hsts_db_priv, FILE *fp)
/**
* \param[in] hsts_db HSTS database
* \return 0 if the operation succeded, -1 otherwise
* \return 0 if the operation succeeded, -1 otherwise
*
* Saves all changes to the HSTS database (via wget_hsts_db_add() for example) to persistent storage.
*
......
......@@ -96,7 +96,7 @@ static void __attribute__ ((destructor)) _wget_http_exit(void)
* HTTP API initialization, allocating/preparing the internal resources.
*
* On systems with automatic library constructors, this function
* doesn't have to be called explictly.
* doesn't have to be called explicitly.
*
* This function is not thread-safe.
*/
......@@ -109,7 +109,7 @@ void wget_http_init(void)
* HTTP API deinitialization, free'ing all internal resources.
*
* On systems with automatic library destructors, this function
* doesn't have to be called explictly.
* doesn't have to be called explicitly.
*
* This function is not thread-safe.
*/
......
......@@ -482,7 +482,7 @@ int wget_update_file(const char *fname,
if (save_func) {
int fd;
// creat & open temp file to write data into with 0600 - rely on Gnulib to set correct
// create & open temp file to write data into with 0600 - rely on Gnulib to set correct
// ownership instead of using umask() here.
if ((fd = mkstemp(tmpfile)) == -1) {
close(lockfd);
......
......@@ -324,7 +324,7 @@ void wget_iri_free(wget_iri_t **iri)
* \return A libwget IRI (`wget_iri_t`)
*
* The host, path, query and fragment parts will be converted to UTF-8 from
* the encoding given in the paramter \p encoding. GNU libiconv is used
* the encoding given in the parameter \p encoding. GNU libiconv is used
* to perform the conversion, so this value should be the name of a valid character set
* supported by that library, such as "utf-8" or "iso-8859-1".
*/
......
......@@ -124,7 +124,7 @@ wget_list_append(wget_list_t **list, const void *data, size_t size)
* \p size bytes at \p data will be copied and prepended to the list.
*
* A pointer to the new element will be returned.
* It must be freed by wget_list_remove() or implicitely by wget_list_free().
* It must be freed by wget_list_remove() or implicitly by wget_list_free().
*/
void *wget_list_prepend(wget_list_t **list, const void *data, size_t size)
{
......
......@@ -233,7 +233,7 @@ void wget_ocsp_db_deinit(wget_ocsp_db_t *ocsp_db)
* A double pointer is required because this function will set the handle (pointer) to the HPKP database to NULL
* to prevent potential use-after-free conditions.
*
* New entries added to the database will be lost unless commited to the persistent storage using
* New entries added to the database will be lost unless committed to the persistent storage using
* wget_ocsp_db_save().
*
* If `ocsp_db` or the pointer it points to is NULL, then this function does nothing.
......
......@@ -181,12 +181,12 @@ pid_t wget_fd_popen3(int *fdin, int *fdout, int *fderr, const char *const *argv)
return pid;
}
// extended popen to have control over the childs STDIN, STDOUT and STDERR
// NULL to ignore childs STDxxx
// extended popen to have control over the child's STDIN, STDOUT and STDERR
// NULL to ignore child's STDxxx
// if fpout==fperr STDERR will be redirected to STDOUT
// fpin: childs stdin (that's where the calling process can write data into)
// fpout: childs stdout (that's where the calling process reads data from)
// fperr: childs stderr (that's where the calling process reads error messages from)
// fpin: child's stdin (that's where the calling process can write data into)
// fpout: child's stdout (that's where the calling process reads data from)
// fperr: child's stderr (that's where the calling process reads error messages from)
// argv: argument to execvp(), e.g. const char *argv[]={"ls","-la",NULL};
pid_t wget_popen3(FILE **fpin, FILE **fpout, FILE **fperr, const char *const *argv)
......
......@@ -73,7 +73,7 @@ static void __attribute__ ((destructor)) _wget_random_exit(void)
* Random API initialization, allocating/preparing the internal resources.
*
* On systems with automatic library constructors, this function
* doesn't have to be called explictly.
* doesn't have to be called explicitly.
*
* This function is not thread-safe.
*/
......@@ -86,7 +86,7 @@ void wget_random_init(void)
* Random API deinitialization, free'ing all internal resources.
*
* On systems with automatic library destructors, this function
* doesn't have to be called explictly.
* doesn't have to be called explicitly.
*
* This function is not thread-safe.
*/
......
......@@ -242,7 +242,7 @@ void wget_ssl_set_config_string(int key, const char *value)
*
* - WGET_SSL_OCSP_CACHE: This option takes a pointer to a \ref wget_ocsp_db_t
* structure as an argument. Such a pointer is returned when initializing the OCSP cache with wget_ocsp_db_init().
* The cache is used to store OCSP responses locally and avoid querying the OCSP server repeteadly for the same certificate.
* The cache is used to store OCSP responses locally and avoid querying the OCSP server repeatedly for the same certificate.
* - WGET_SSL_SESSION_CACHE: This option takes a pointer to a \ref wget_tls_session_db_t structure.
* Such a pointer is returned when initializing the TLS session cache with wget_tls_session_db_init().
* This option thus sets the handle to the TLS session cache that will be used to store TLS sessions.
......
......@@ -642,7 +642,7 @@ static int G_GNUC_WGET_NONNULL_ALL _compare(const void *p1, const void *p2, void
/**
* \param[in] v Vector
*
* Sort the elements in vector \p v usign the compare function.
* Sort the elements in vector \p v using the compare function.
* Do nothing if \p v is %NULL or the compare function is not set.
*/
void wget_vector_sort(wget_vector_t *v)
......
......@@ -72,7 +72,7 @@ void set_exit_status(exit_status_t status)
// use Wget exit status scheme:
// - error code 0 is default
// - error code 1 is used directly by exit() (fatal errors)
// - error codes 2... : lower numbers preceed higher numbers
// - error codes 2... : lower numbers precede higher numbers
if (exit_status) {
if (status < exit_status) {
debug_printf("%s(%d)\n", __func__, (int) status);
......@@ -950,7 +950,7 @@ static int parse_verify_sig(option_t opt, const char *val, const char invert)
if (opt->var) {
if (invert) {
if (val) {
error_printf(_("no-verify-sig cannot take additional arugments\n"));
error_printf(_("no-verify-sig cannot take additional arguments\n"));
return -1;
} else {
*((char *)opt->var) = WGET_GPG_VERIFY_DISABLED;
......
......@@ -76,7 +76,7 @@ static int hsts_db_priority;
// Plugin supplied HPKP database
static wget_hpkp_db_t *hpkp_db;
static int hpkp_db_priority;
// Pluign supplied OCSP database
// Plugin supplied OCSP database
static wget_ocsp_db_t *ocsp_db;
static int ocsp_db_priority;
......
......@@ -80,7 +80,7 @@ int wget_verify_pgp_sig_buff(wget_buffer_t *sig, wget_buffer_t *data, wget_gpg_i
* information about the verification. Pass in NULL if you don't care.
* \return A wget error code.
* Return Codes:
* - WGET_E_SUCCESS: Verification was succesful.
* - WGET_E_SUCCESS: Verification was successful.
* - WGET_E_INVALID: Invalid input.
* - WGET_E_GPG_DISABLED: Wasn't compiled with GPGME support.
* - WGET_E_GPG_VER_FAIL: Verification failed.
......
......@@ -2,7 +2,7 @@ This is a revocation certificate for the OpenPGP key:
pub rsa2048/2E1E63EA 2017-11-23
Key fingerprint = A355 EA5D 3CEF DAF6 F101 CECE 3663 F338 2E1E 63EA
uid Am Missing (Where did this key go?) <unkown@unkown.com>
uid Am Missing (Where did this key go?) <unknown@unknown.com>
A revocation certificate is a kind of "kill switch" to publicly
declare that a key shall not anymore be used. It is not possible
......
......@@ -325,7 +325,7 @@ int main(void)
{ NULL } },
0);
// test --compression overide
// test --compression override
wget_test(
// WGET_TEST_KEEP_TMPFILES, 1,
WGET_TEST_OPTIONS, "--no-compression --compression=identity",
......@@ -336,7 +336,7 @@ int main(void)
{ NULL } },
0);
// test --no-compression overide
// test --no-compression override
wget_test(
// WGET_TEST_KEEP_TMPFILES, 1,
WGET_TEST_OPTIONS, "--compression=identity --no-compression",
......@@ -362,7 +362,7 @@ int main(void)
#endif
0);
// test overide
// test override
wget_test(
// WGET_TEST_KEEP_TMPFILES, 1,
WGET_TEST_OPTIONS, "--compression=br --compression=gzip",
......
......@@ -121,7 +121,7 @@ static void test_cookies(void)
wget_cookie_store_cookies(cookie_db, resp->cookies);
// free reponse structure
// free response structure
wget_http_free_response(&resp);
// create cookie
......
......@@ -121,7 +121,7 @@ static void test_cookies(void)
wget_cookie_store_cookies(cookie_db, resp->cookies);
// free reponse structure
// free response structure
wget_http_free_response(&resp);
// create cookie
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment