mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:53:31 +03:00
misc: Fix typos in docs and lib
This fixes miscellaneous typos and duplicated words in the docs, lib and test comments and a few user facing errorstrings. Author: RainRat on Github Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Dan Fandrich <dan@coneharvesters.com> Closes: #13019
This commit is contained in:
parent
89733e2dd2
commit
2cd78f525c
26 changed files with 26 additions and 26 deletions
|
|
@ -850,7 +850,7 @@ CURLcode Curl_set_dns_servers(struct Curl_easy *data,
|
|||
/* If server is NULL or empty, this would purge all DNS servers
|
||||
* from ares library, which will cause any and all queries to fail.
|
||||
* So, just return OK if none are configured and don't actually make
|
||||
* any changes to c-ares. This lets c-ares use it's defaults, which
|
||||
* any changes to c-ares. This lets c-ares use its defaults, which
|
||||
* it gets from the OS (for instance from /etc/resolv.conf on Linux).
|
||||
*/
|
||||
if(!(servers && servers[0]))
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ void Curl_conn_adjust_pollset(struct Curl_easy *data,
|
|||
/**
|
||||
* Receive data through the filter chain at `sockindex` for connection
|
||||
* `data->conn`. Copy at most `len` bytes into `buf`. Return the
|
||||
* actuel number of bytes copied or a negative value on error.
|
||||
* actual number of bytes copied or a negative value on error.
|
||||
* The error code is placed into `*code`.
|
||||
*/
|
||||
ssize_t Curl_cf_recv(struct Curl_easy *data, int sockindex, char *buf,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
* Curl_des_set_odd_parity()
|
||||
*
|
||||
* This is used to apply odd parity to the given byte array. It is typically
|
||||
* used by when a cryptography engines doesn't have it's own version.
|
||||
* used by when a cryptography engine doesn't have its own version.
|
||||
*
|
||||
* The function is a port of the Java based oddParity() function over at:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ static struct Curl_dns_entry *fetch_addr(struct Curl_easy *data,
|
|||
size_t entry_len = create_hostcache_id(hostname, 0, port,
|
||||
entry_id, sizeof(entry_id));
|
||||
|
||||
/* See if its already in our dns cache */
|
||||
/* See if it's already in our dns cache */
|
||||
dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1);
|
||||
|
||||
/* No entry found in cache, check if we might have a wildcard entry */
|
||||
|
|
|
|||
|
|
@ -4125,7 +4125,7 @@ CURLcode Curl_http_write_resp(struct Curl_easy *data,
|
|||
blen -= consumed;
|
||||
buf += consumed;
|
||||
/* either all was consumed in header parsing, or we have data left
|
||||
* and are done with heders, e.g. it is BODY data */
|
||||
* and are done with headers, e.g. it is BODY data */
|
||||
DEBUGASSERT(!blen || !data->req.header);
|
||||
if(!data->req.header && (blen || is_eos)) {
|
||||
/* BODY data after header been parsed, write and consume */
|
||||
|
|
|
|||
|
|
@ -642,7 +642,7 @@ static int parsefmt(const char *format,
|
|||
* On success, the input array describes the type of all arguments and their
|
||||
* values.
|
||||
*
|
||||
* The function then iterates over the output sengments and outputs them one
|
||||
* The function then iterates over the output segments and outputs them one
|
||||
* by one until done. Using the appropriate input arguments (if any).
|
||||
*
|
||||
* All output is sent to the 'stream()' callback, one byte at a time.
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(struct Curl_cfilter *cf,
|
|||
gss_recv_token.length, &actualread);
|
||||
|
||||
if(result || (actualread != us_length)) {
|
||||
failf(data, "Failed to receive GSS-API encryptrion type.");
|
||||
failf(data, "Failed to receive GSS-API encryption type.");
|
||||
gss_release_buffer(&gss_status, &gss_recv_token);
|
||||
gss_delete_sec_context(&gss_status, &gss_context, NULL);
|
||||
return CURLE_COULDNT_CONNECT;
|
||||
|
|
|
|||
|
|
@ -1769,7 +1769,7 @@ static CURLcode cf_progress_egress(struct Curl_cfilter *cf,
|
|||
}
|
||||
|
||||
/* In UDP, there is a maximum theoretical packet paload length and
|
||||
* a minimum payload length that is "guarantueed" to work.
|
||||
* a minimum payload length that is "guaranteed" to work.
|
||||
* To detect if this minimum payload can be increased, ngtcp2 sends
|
||||
* now and then a packet payload larger than the minimum. It that
|
||||
* is ACKed by the peer, both parties know that it works and
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ static CURLcode cf_osslq_ssl_err(struct Curl_cfilter *cf,
|
|||
#endif
|
||||
else if((lib == ERR_LIB_SSL) && (reason == SSL_R_PROTOCOL_IS_SHUTDOWN)) {
|
||||
ctx->protocol_shutdown = TRUE;
|
||||
err_descr = "QUIC connectin has been shut down";
|
||||
err_descr = "QUIC connection has been shut down";
|
||||
result = def_result;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -3272,7 +3272,7 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
|
|||
#endif /* CURL_LIBSSH2_DEBUG */
|
||||
|
||||
/* libcurl MUST to set custom memory functions so that the kbd_callback
|
||||
funciton's memory allocations can be properled freed */
|
||||
function's memory allocations can be properly freed */
|
||||
sshc->ssh_session = libssh2_session_init_ex(my_libssh2_malloc,
|
||||
my_libssh2_free,
|
||||
my_libssh2_realloc, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue