From 3b6d18bbf6f2faccb48484a4f670bca6e819afe4 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 3 Oct 2023 14:44:13 +0000 Subject: [PATCH] spelling: fix codespell 2.2.6 typos Closes #12019 --- docs/IPFS.md | 2 +- docs/TODO | 2 +- docs/examples/simplessl.c | 2 +- include/curl/curl.h | 8 ++++---- lib/cf-h2-proxy.c | 2 +- lib/formdata.c | 2 +- lib/ftp.c | 2 +- lib/ftplistparser.c | 2 +- lib/sendf.h | 2 +- lib/urldata.h | 2 +- lib/vssh/libssh.c | 4 ++-- lib/vssh/libssh2.c | 4 ++-- lib/vtls/schannel.c | 4 ++-- packages/vms/gnv_link_curl.com | 2 +- tests/data/test2051 | 2 +- tests/libtest/lib1560.c | 2 +- tests/libtest/lib2306.c | 2 +- tests/libtest/lib526.c | 2 +- tests/libtest/lib533.c | 2 +- tests/manpage-scan.pl | 2 +- tests/options-scan.pl | 2 +- tests/server/rtspd.c | 2 +- tests/unit/unit1300.c | 2 +- 23 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/IPFS.md b/docs/IPFS.md index 0bb2cd7c72..be8c597d9e 100644 --- a/docs/IPFS.md +++ b/docs/IPFS.md @@ -1,7 +1,7 @@ # IPFS For an overview about IPFS, visit the [IPFS project site](https://ipfs.tech/). -In IPFS there are two protocols. IPFS and IPNS (their workings are explained in detail [here](https://docs.ipfs.tech/concepts/)). The ideal way to access data on the IPFS network is trough those protocols. For example to access the Big Buck Bunny video the ideal way to access it is like: `ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi` +In IPFS there are two protocols. IPFS and IPNS (their workings are explained in detail [here](https://docs.ipfs.tech/concepts/)). The ideal way to access data on the IPFS network is through those protocols. For example to access the Big Buck Bunny video the ideal way to access it is like: `ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi` ## IPFS Gateways diff --git a/docs/TODO b/docs/TODO index a8e090c168..f487f88aa3 100644 --- a/docs/TODO +++ b/docs/TODO @@ -618,7 +618,7 @@ 5.3 Rearrange request header order - Server implementors often make an effort to detect browser and to reject + Server implementers often make an effort to detect browser and to reject clients it can detect to not match. One of the last details we cannot yet control in libcurl's HTTP requests, which also can be exploited to detect that libcurl is in fact used even when it tries to impersonate a browser, is diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c index 1be805cc3b..9d933ce82c 100644 --- a/docs/examples/simplessl.c +++ b/docs/examples/simplessl.c @@ -118,7 +118,7 @@ int main(void) /* set the private key (file or ID in engine) */ curl_easy_setopt(curl, CURLOPT_SSLKEY, pKeyName); - /* set the file with the certs vaildating the server */ + /* set the file with the certs validating the server */ curl_easy_setopt(curl, CURLOPT_CAINFO, pCACertFile); /* disconnect if we cannot validate server's cert */ diff --git a/include/curl/curl.h b/include/curl/curl.h index 78901591c1..bf71d82fb4 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -646,10 +646,10 @@ typedef enum { #ifndef CURL_NO_OLDIES /* define this to test if your app builds with all the obsolete stuff removed! */ -/* Previously obsolete error code re-used in 7.38.0 */ +/* Previously obsolete error code reused in 7.38.0 */ #define CURLE_OBSOLETE16 CURLE_HTTP2 -/* Previously obsolete error codes re-used in 7.24.0 */ +/* Previously obsolete error codes reused in 7.24.0 */ #define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED #define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT @@ -1358,7 +1358,7 @@ typedef enum { operation slower and is less friendly for the network. */ CURLOPT(CURLOPT_FRESH_CONNECT, CURLOPTTYPE_LONG, 74), - /* Set to explicitly forbid the upcoming transfer's connection to be re-used + /* Set to explicitly forbid the upcoming transfer's connection to be reused when done. Do not use this unless you're absolutely sure of this, as it makes the operation slower and is less friendly for the network. */ CURLOPT(CURLOPT_FORBID_REUSE, CURLOPTTYPE_LONG, 75), @@ -1652,7 +1652,7 @@ typedef enum { CURLOPT(CURLOPT_SOCKOPTFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 148), CURLOPT(CURLOPT_SOCKOPTDATA, CURLOPTTYPE_CBPOINT, 149), - /* set to 0 to disable session ID re-use for this transfer, default is + /* set to 0 to disable session ID reuse for this transfer, default is enabled (== 1) */ CURLOPT(CURLOPT_SSL_SESSIONID_CACHE, CURLOPTTYPE_LONG, 150), diff --git a/lib/cf-h2-proxy.c b/lib/cf-h2-proxy.c index 922212082d..dbc895d263 100644 --- a/lib/cf-h2-proxy.c +++ b/lib/cf-h2-proxy.c @@ -1023,7 +1023,7 @@ static CURLcode inspect_response(struct Curl_cfilter *cf, if(result) return result; if(data->req.newurl) { - /* Inidicator that we should try again */ + /* Indicator that we should try again */ Curl_safefree(data->req.newurl); h2_tunnel_go_state(cf, ts, H2_TUNNEL_INIT, data); return CURLE_OK; diff --git a/lib/formdata.c b/lib/formdata.c index f370ce6854..e40c4bcb03 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -789,7 +789,7 @@ static CURLcode setname(curl_mimepart *part, const char *name, size_t len) return res; } -/* wrap call to fseeko so it matches the calling convetion of callback */ +/* wrap call to fseeko so it matches the calling convention of callback */ static int fseeko_wrapper(void *stream, curl_off_t offset, int whence) { #if defined(HAVE_FSEEKO) diff --git a/lib/ftp.c b/lib/ftp.c index 199a85447d..518c923320 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -3480,7 +3480,7 @@ CURLcode ftp_sendquote(struct Curl_easy *data, /* if a command starts with an asterisk, which a legal FTP command never can, the command will be allowed to fail without it causing any aborts or cancels etc. It will cause libcurl to act as if the command - is successful, whatever the server reponds. */ + is successful, whatever the server responds. */ if(cmd[0] == '*') { cmd++; diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c index 226d9bc033..2a7ca5bafc 100644 --- a/lib/ftplistparser.c +++ b/lib/ftplistparser.c @@ -379,7 +379,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb, /* scenario: * 1. call => OK.. * 2. call => OUT_OF_MEMORY (or other error) - * 3. (last) call => is skipped RIGHT HERE and the error is hadled later + * 3. (last) call => is skipped RIGHT HERE and the error is handled later * in wc_statemach() */ goto fail; diff --git a/lib/sendf.h b/lib/sendf.h index 3fb07f64a9..9ee00bb0df 100644 --- a/lib/sendf.h +++ b/lib/sendf.h @@ -30,7 +30,7 @@ /** * Type of data that is being written to the client (application) - * - data written can be eiter BODY or META data + * - data written can be either BODY or META data * - META data is either INFO or HEADER * - INFO is meta information, e.g. not BODY, that cannot be interpreted * as headers of a response. Example FTP/IMAP pingpong answers. diff --git a/lib/urldata.h b/lib/urldata.h index 989caeeb8d..dff26e6b4b 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1262,7 +1262,7 @@ struct tempbuf { struct dynbuf b; int type; /* type of the 'tempwrite' buffer as a bitmask that is used with Curl_client_write() */ - BIT(paused_body); /* if PAUSE happend before/during BODY write */ + BIT(paused_body); /* if PAUSE happened before/during BODY write */ }; /* Timers */ diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 7c6a2e53f3..b0f49d60c9 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -2660,7 +2660,7 @@ static void sftp_quote(struct Curl_easy *data) /* if a command starts with an asterisk, which a legal SFTP command never can, the command will be allowed to fail without it causing any aborts or cancels etc. It will cause libcurl to act as if the command - is successful, whatever the server reponds. */ + is successful, whatever the server responds. */ if(cmd[0] == '*') { cmd++; @@ -2834,7 +2834,7 @@ static void sftp_quote_stat(struct Curl_easy *data) /* if a command starts with an asterisk, which a legal SFTP command never can, the command will be allowed to fail without it causing any aborts or cancels etc. It will cause libcurl to act as if the command - is successful, whatever the server reponds. */ + is successful, whatever the server responds. */ if(cmd[0] == '*') { cmd++; diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 21fe1193c2..f539b393b3 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -1503,7 +1503,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block) /* if a command starts with an asterisk, which a legal SFTP command never can, the command will be allowed to fail without it causing any aborts or cancels etc. It will cause libcurl to act as if the command - is successful, whatever the server reponds. */ + is successful, whatever the server responds. */ if(cmd[0] == '*') { cmd++; @@ -1699,7 +1699,7 @@ static CURLcode ssh_statemach_act(struct Curl_easy *data, bool *block) /* if a command starts with an asterisk, which a legal SFTP command never can, the command will be allowed to fail without it causing any aborts or cancels etc. It will cause libcurl to act as if the command - is successful, whatever the server reponds. */ + is successful, whatever the server responds. */ if(cmd[0] == '*') { cmd++; diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 7b14b1719f..410a5c4ec7 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -728,7 +728,7 @@ schannel_acquire_credential_handle(struct Curl_cfilter *cf, } #endif - /* allocate memory for the re-usable credential handle */ + /* allocate memory for the reusable credential handle */ backend->cred = (struct Curl_schannel_cred *) calloc(1, sizeof(struct Curl_schannel_cred)); if(!backend->cred) { @@ -1128,7 +1128,7 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) backend->cred = NULL; - /* check for an existing re-usable credential handle */ + /* check for an existing reusable credential handle */ if(ssl_config->primary.sessionid) { Curl_ssl_sessionid_lock(data); if(!Curl_ssl_getsessionid(cf, data, (void **)&old_cred, NULL)) { diff --git a/packages/vms/gnv_link_curl.com b/packages/vms/gnv_link_curl.com index 4959f1babe..247987ae87 100644 --- a/packages/vms/gnv_link_curl.com +++ b/packages/vms/gnv_link_curl.com @@ -388,7 +388,7 @@ $ if f$search("[.src]curl-tool_main.o") .nes. "" $ then $! From src/makefile.inc: $! # libcurl has sources that provide functions named curlx_* that aren't -$! # part of the official API, but we re-use the code here to avoid +$! # part of the official API, but we reuse the code here to avoid $! # duplication. $! $! diff --git a/tests/data/test2051 b/tests/data/test2051 index bd823bfffa..2dcee0da1a 100644 --- a/tests/data/test2051 +++ b/tests/data/test2051 @@ -27,7 +27,7 @@ OK http -Connect to specific host: Re-use existing connections if possible +Connect to specific host: Reuse existing connections if possible diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 2843b41c11..765df0a279 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -838,7 +838,7 @@ static const struct setcase set_parts_list[] = { 0, /* set */ CURLUE_OK, CURLUE_BAD_HOSTNAME}, {"https://example.com/", - "host=0xff,", /* '++' there's no automatic URL decode when settin this + "host=0xff,", /* '++' there's no automatic URL decode when setting this part */ "https://0xff/", 0, /* get */ diff --git a/tests/libtest/lib2306.c b/tests/libtest/lib2306.c index 6023bfee4c..1831b331c4 100644 --- a/tests/libtest/lib2306.c +++ b/tests/libtest/lib2306.c @@ -42,7 +42,7 @@ int test(char *URL) curl_easy_setopt(cl, CURLOPT_VERBOSE, 1L); curl_easy_perform(cl); - /* re-use handle, do a second transfer */ + /* reuse handle, do a second transfer */ curl_easy_setopt(cl, CURLOPT_URL, URL2); curl_easy_perform(cl); curl_easy_cleanup(cl); diff --git a/tests/libtest/lib526.c b/tests/libtest/lib526.c index d6b365a199..12b65c023f 100644 --- a/tests/libtest/lib526.c +++ b/tests/libtest/lib526.c @@ -109,7 +109,7 @@ int test(char *URL) /* first remove the only handle we use */ curl_multi_remove_handle(m, curl[0]); - /* make us re-use the same handle all the time, and try resetting + /* make us reuse the same handle all the time, and try resetting the handle first too */ curl_easy_reset(curl[0]); easy_setopt(curl[0], CURLOPT_URL, URL); diff --git a/tests/libtest/lib533.c b/tests/libtest/lib533.c index ff476343fa..0f6a89c2fb 100644 --- a/tests/libtest/lib533.c +++ b/tests/libtest/lib533.c @@ -75,7 +75,7 @@ int test(char *URL) /* remove the handle we use */ curl_multi_remove_handle(m, curl); - /* make us re-use the same handle all the time, and try resetting + /* make us reuse the same handle all the time, and try resetting the handle first too */ curl_easy_reset(curl); easy_setopt(curl, CURLOPT_URL, libtest_arg2); diff --git a/tests/manpage-scan.pl b/tests/manpage-scan.pl index 0a7654d33b..c09e979d0b 100755 --- a/tests/manpage-scan.pl +++ b/tests/manpage-scan.pl @@ -90,7 +90,7 @@ sub scanmanpage { my $r; -# check for define alises +# check for define aliases open($r, "<", "$curlh") || die "no curl.h"; while(<$r>) { diff --git a/tests/options-scan.pl b/tests/options-scan.pl index 05e50bf590..2014dc4f6d 100755 --- a/tests/options-scan.pl +++ b/tests/options-scan.pl @@ -26,7 +26,7 @@ # # - Get all options mentioned in the $cmddir. # - Make sure they're all mentioned in the $opts document -# - Make usre that the version in $opts matches the version in the file in +# - Make sure that the version in $opts matches the version in the file in # $cmddir # diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c index 47bd32e74e..dbe8a48b08 100644 --- a/tests/server/rtspd.c +++ b/tests/server/rtspd.c @@ -1288,7 +1288,7 @@ int main(int argc, char *argv[]) } /* - ** As soon as this server acepts a connection from the test harness it + ** As soon as this server accepts a connection from the test harness it ** must set the server logs advisor read lock to indicate that server ** logs should not be read until this lock is removed by this server. */ diff --git a/tests/unit/unit1300.c b/tests/unit/unit1300.c index acbf89b90e..66fb5d02d5 100644 --- a/tests/unit/unit1300.c +++ b/tests/unit/unit1300.c @@ -75,7 +75,7 @@ UNITTEST_START fail_unless(llist.size == 0, "list initial size should be zero"); fail_unless(llist.head == NULL, "list head should initiate to NULL"); - fail_unless(llist.tail == NULL, "list tail should intiate to NULL"); + fail_unless(llist.tail == NULL, "list tail should initiate to NULL"); fail_unless(llist.dtor == test_Curl_llist_dtor, "list dtor should initiate to test_Curl_llist_dtor");