Skip to content

Commit 7e2a11b

Browse files
bagderbch
authored andcommitted
misc: fix spelling mistakes
Reported-by: musvaage on github Fixes curl#11171 Closes curl#11172
1 parent f479c20 commit 7e2a11b

28 files changed

+41
-42
lines changed

docs/INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ OpenSSL, follow the OpenSSL build instructions and then install `libssl.a` and
423423
OpenSSL like this:
424424

425425
```bash
426-
LIBS="-lssl -lcrypto -lc++" # For OpenSSL/BoringSSL. In general, you will need to the SSL/TLS layer's transtive dependencies if you are linking statically.
426+
LIBS="-lssl -lcrypto -lc++" # For OpenSSL/BoringSSL. In general, you will need to the SSL/TLS layer's transitive dependencies if you are linking statically.
427427
./configure --host aarch64-linux-android --with-pic --disable-shared --with-openssl="$TOOLCHAIN/sysroot/usr"
428428
```
429429

docs/examples/htmltitle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ int main(int argc, char *argv[])
272272
// Initialize CURL connection
273273

274274
if(!init(conn, argv[1])) {
275-
fprintf(stderr, "Connection initializion failed\n");
275+
fprintf(stderr, "Connection initialization failed\n");
276276
exit(EXIT_FAILURE);
277277
}
278278

docs/examples/httpput.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ int main(int argc, char **argv)
101101
/* now specify which file to upload */
102102
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
103103

104-
/* provide the size of the upload, we specicially typecast the value
105-
to curl_off_t since we must be sure to use the correct data size */
104+
/* provide the size of the upload, we typecast the value to curl_off_t
105+
since we must be sure to use the correct data size */
106106
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
107107
(curl_off_t)file_info.st_size);
108108

lib/cf-h2-proxy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
255255
int rc = nghttp2_option_new(&o);
256256
if(rc)
257257
return rc;
258-
/* We handle window updates ourself to enfore buffer limits */
258+
/* We handle window updates ourself to enforce buffer limits */
259259
nghttp2_option_set_no_auto_window_update(o, 1);
260260
#if NGHTTP2_VERSION_NUM >= 0x013200
261261
/* with 1.50.0 */

lib/cf-socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ CURLcode Curl_socket_connect_result(struct Curl_easy *data,
747747
}
748748

749749
/* We have a recv buffer to enhance reads with len < NW_SMALL_READS.
750-
* This happens often on TLS connections where the TLS implemenation
750+
* This happens often on TLS connections where the TLS implementation
751751
* tries to read the head of a TLS record, determine the length of the
752752
* full record and then make a subsequent read for that.
753753
* On large reads, we will not fill the buffer to avoid the double copy. */

lib/cookie.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ static CURLcode cookie_output(struct Curl_easy *data,
17211721
}
17221722

17231723
/*
1724-
* If we reach here we have successfully written a cookie file so theree is
1724+
* If we reach here we have successfully written a cookie file so there is
17251725
* no need to inspect the error, any error case should have jumped into the
17261726
* error block below.
17271727
*/

lib/curl_addrinfo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Curl_he2ai(const struct hostent *he, int port)
274274

275275
for(i = 0; (curr = he->h_addr_list[i]) != NULL; i++) {
276276
size_t ss_size;
277-
size_t namelen = strlen(he->h_name) + 1; /* include null-terminatior */
277+
size_t namelen = strlen(he->h_name) + 1; /* include null-terminator */
278278
#ifdef ENABLE_IPV6
279279
if(he->h_addrtype == AF_INET6)
280280
ss_size = sizeof(struct sockaddr_in6);

lib/http2.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
/* spare chunks we keep for a full window */
8282
#define H2_STREAM_POOL_SPARES (H2_STREAM_WINDOW_SIZE / H2_CHUNK_SIZE)
8383

84-
/* We need to accomodate the max number of streams with their window
84+
/* We need to accommodate the max number of streams with their window
8585
* sizes on the overall connection. Streams might become PAUSED which
8686
* will block their received QUOTA in the connection window. And if we
8787
* run out of space, the server is blocked from sending us any data.
@@ -327,7 +327,7 @@ static int h2_client_new(struct Curl_cfilter *cf,
327327
int rc = nghttp2_option_new(&o);
328328
if(rc)
329329
return rc;
330-
/* We handle window updates ourself to enfore buffer limits */
330+
/* We handle window updates ourself to enforce buffer limits */
331331
nghttp2_option_set_no_auto_window_update(o, 1);
332332
#if NGHTTP2_VERSION_NUM >= 0x013200
333333
/* with 1.50.0 */

lib/urlapi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname,
651651
*/
652652

653653
#define HOST_ERROR -1 /* out of memory */
654-
#define HOST_BAD -2 /* bad IPv4 adddress */
654+
#define HOST_BAD -2 /* bad IPv4 address */
655655

656656
#define HOST_NAME 1
657657
#define HOST_IPV4 2

lib/vauth/vauth.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ bool Curl_auth_is_spnego_supported(void);
219219
message */
220220
CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
221221
const char *user,
222-
const char *passwood,
222+
const char *password,
223223
const char *service,
224224
const char *host,
225225
const char *chlg64,

lib/vquic/curl_ngtcp2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ static int cb_h3_acked_req_body(nghttp3_conn *conn, int64_t stream_id,
14431443
(void)cf;
14441444
if(!stream)
14451445
return 0;
1446-
/* The server ackknowledged `datalen` of bytes from our request body.
1446+
/* The server acknowledged `datalen` of bytes from our request body.
14471447
* This is a delta. We have kept this data in `sendbuf` for
14481448
* re-transmissions and can free it now. */
14491449
if(datalen >= (uint64_t)stream->sendbuf_len_in_flight)

lib/vtls/sectransp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ static CURLcode sectransp_connect_step2(struct Curl_cfilter *cf,
27192719
failf(data, "Peer rejected unexpected message");
27202720
break;
27212721
#if CURL_BUILD_MAC_10_11 || CURL_BUILD_IOS_9
2722-
/* Treaing non-fatal error as fatal like before */
2722+
/* Treating non-fatal error as fatal like before */
27232723
case errSSLClientHelloReceived:
27242724
failf(data, "A non-fatal result for providing a server name "
27252725
"indication");

lib/vtls/x509asn1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static const struct Curl_OID OIDtable[] = {
172172
* It is intended to support certificate information gathering for SSL backends
173173
* that offer a mean to get certificates as a whole, but do not supply
174174
* entry points to get particular certificate sub-fields.
175-
* Please note there is no pretention here to rewrite a full SSL library.
175+
* Please note there is no pretension here to rewrite a full SSL library.
176176
*/
177177

178178
static const char *getASN1Element(struct Curl_asn1Element *elem,

m4/curl-confopts.m4

+2-3
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,8 @@ AC_DEFUN([CURL_CONFIGURE_SYMBOL_HIDING], [
475475

476476
dnl CURL_CHECK_LIB_ARES
477477
dnl -------------------------------------------------
478-
dnl When c-ares library support has been requested,
479-
dnl performs necessary checks and adjustsments needed
480-
dnl to enable support of this library.
478+
dnl When c-ares library support has been requested, performs necessary checks
479+
dnl and adjustments needed to enable support of this library.
481480

482481
AC_DEFUN([CURL_CHECK_LIB_ARES], [
483482
#

packages/OS400/curl.inc.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@
22812281
d CURLSTS_DONE c 1
22822282
d CURLSTS_FAIL c 2
22832283
*
2284-
* Renaming CURLMsg to CURL_Msg to avoid case-insensivity name clash.
2284+
* Renaming CURLMsg to CURL_Msg to avoid case-insensitivity name clash.
22852285
*
22862286
d CURL_Msg ds based(######ptr######)
22872287
d qualified

packages/OS400/initscript.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ make_module()
208208
# putting it in an include file makes it only active
209209
# for that include file.
210210
# Thus we build a temporary file with the pragma prepended to
211-
# the source file and we compile that themporary file.
211+
# the source file and we compile that temporary file.
212212

213213
echo "#line 1 \"${2}\"" > __tmpsrcf.c
214214
echo "#pragma convert(819)" >> __tmpsrcf.c

packages/vms/curl_release_note_start.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ From file: CURL_RELEASE_NOTE_START.TXT
22

33
Note: These kits are produced by a hobbyist and are providing any support
44
or any commitment to supply bug fixes or future releases. This code is
5-
as-is with no warrantees.
5+
as-is with no warranties.
66

77
The testing of this build of curl was minimal and involved building some of
88
the sample and test programs, accessing a public HTTPS: website, doing a

src/tool_cb_rea.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ size_t tool_read_cb(char *buffer, size_t sz, size_t nmemb, void *userdata)
8787
}
8888
in->config->readbusy = FALSE;
8989

90-
/* when select() rerturned zero here, it timed out */
90+
/* when select() returned zero here, it timed out */
9191
return (size_t)rc;
9292
}
9393

src/tool_cfgable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct OperationConfig {
118118
bool dirlistonly; /* only get the FTP dir list */
119119
bool followlocation; /* follow http redirects */
120120
bool unrestricted_auth; /* Continue to send authentication (user+password)
121-
when following ocations, even when hostname
121+
when following redirects, even when hostname
122122
changed */
123123
bool netrc_opt;
124124
bool netrc;

tests/data/test178

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Accept: */*
5353
</protocol>
5454

5555
# Hyper curl returns unsupported protocol
56-
# bullt-in curl returns weird_server_reply
56+
# built-in curl returns weird_server_reply
5757
<errorcode>
5858
%if hyper
5959
1

tests/data/test1906

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CURLOPT_CURLU and CURLOPT_PORT
3030
lib%TESTNUMBER
3131
</tool>
3232

33-
# The tool does two requesets, the first sets CURLOPT_PORT to 1
33+
# The tool does two requests, the first sets CURLOPT_PORT to 1
3434
# the second resets the port again and expects that request to work.
3535
<command>
3636
http://%HOSTIP:%HTTPPORT/%TESTNUMBER

tests/data/test31

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cookiejar
1111
#
1212
# The cookies set come in two versions. This is because when curl is built
1313
# with Hyper, the API provides the headers already "sanitized" so we cannot
14-
# compapare with the exact server contents unlesss it too sends the data
14+
# compare with the exact server contents unless it too sends the data
1515
# "clean".
1616

1717
<reply>

tests/data/test415

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Accept: */*
5353
</protocol>
5454

5555
# Hyper curl returns unsupported protocol
56-
# bullt-in curl returns weird_server_reply
56+
# built-in curl returns weird_server_reply
5757
<errorcode>
5858
%if hyper
5959
1

tests/data/test420

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Set-Cookie: mycookie1=; Path=/; Max-Age=-1; Expires=Thu, 01 Jan 1970 00:00:00 GM
3434
http
3535
</server>
3636
<name>
37-
Setting cookies set with expried dates that were loaded from jar
37+
Setting cookies set with expired dates that were loaded from jar
3838
</name>
3939
<command>
4040
http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b %LOGDIR/cookie%TESTNUMBER -c %LOGDIR/save%TESTNUMBER

tests/devtest.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
###########################################################################
2525

2626
# This script is intended for developers to test some internals of the
27-
# runtests.pl harneess. Don't try to use this unless you know what you're
27+
# runtests.pl harness. Don't try to use this unless you know what you're
2828
# doing!
2929

3030
# An example command-line that starts a test http server for test 11 and waits

tests/testutil.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#
2323
###########################################################################
2424

25-
# This module contains miscellanous functions needed in several parts of
25+
# This module contains miscellaneous functions needed in several parts of
2626
# the test suite.
2727

2828
package testutil;

tests/unit/unit1399.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void expect_timer_seconds(struct Curl_easy *data, int seconds)
7676
}
7777

7878
/* Scenario: simulate a redirect. When a redirect occurs, t_nslookup,
79-
* t_connect, t_appconnect, t_pretransfer, and t_starttransfer are addative.
79+
* t_connect, t_appconnect, t_pretransfer, and t_starttransfer are additive.
8080
* E.g., if t_starttransfer took 2 seconds initially and took another 1
8181
* second for the redirect request, then the resulting t_starttransfer should
8282
* be 3 seconds. */

tests/unit/unit2600.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -364,36 +364,36 @@ static struct test_case TEST_CASES[] = {
364364
/* TIMEOUT_MS, FAIL_MS CREATED DURATION Result, HE_PREF */
365365
/* CNCT HE v4 v6 v4 v6 MIN MAX */
366366
{ 1, TURL, "test.com:123:192.0.2.1", CURL_IPRESOLVE_WHATEVER,
367-
250, 150, 200, 200, 1, 0, 200, 500, R_FAIL, NULL },
367+
250, 150, 200, 200, 1, 0, 200, 500, R_FAIL, NULL },
368368
/* 1 ipv4, fails after ~200ms, reports COULDNT_CONNECT */
369369
{ 2, TURL, "test.com:123:192.0.2.1,192.0.2.2", CURL_IPRESOLVE_WHATEVER,
370-
500, 150, 200, 200, 2, 0, 400, 800, R_FAIL, NULL },
370+
500, 150, 200, 200, 2, 0, 400, 800, R_FAIL, NULL },
371371
/* 2 ipv4, fails after ~400ms, reports COULDNT_CONNECT */
372372
#ifdef ENABLE_IPV6
373373
{ 3, TURL, "test.com:123:::1", CURL_IPRESOLVE_WHATEVER,
374-
250, 150, 200, 200, 0, 1, 200, 500, R_FAIL, NULL },
374+
250, 150, 200, 200, 0, 1, 200, 500, R_FAIL, NULL },
375375
/* 1 ipv6, fails after ~200ms, reports COULDNT_CONNECT */
376376
{ 4, TURL, "test.com:123:::1,::2", CURL_IPRESOLVE_WHATEVER,
377-
500, 150, 200, 200, 0, 2, 400, 800, R_FAIL, NULL },
377+
500, 150, 200, 200, 0, 2, 400, 800, R_FAIL, NULL },
378378
/* 2 ipv6, fails after ~400ms, reports COULDNT_CONNECT */
379379

380380
{ 5, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_WHATEVER,
381-
500, 150, 200, 200, 1, 1, 350, 800, R_FAIL, "v4" },
381+
500, 150, 200, 200, 1, 1, 350, 800, R_FAIL, "v4" },
382382
/* mixed ip4+6, v4 starts, v6 kicks in on HE, fails after ~350ms */
383383
{ 6, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_WHATEVER,
384-
500, 150, 200, 200, 1, 1, 350, 800, R_FAIL, "v6" },
384+
500, 150, 200, 200, 1, 1, 350, 800, R_FAIL, "v6" },
385385
/* mixed ip6+4, v6 starts, v4 kicks in on HE, fails after ~350ms */
386386
{ 7, TURL, "test.com:123:::1,192.0.2.1,::2,::3", CURL_IPRESOLVE_WHATEVER,
387-
500, 600, 200, 200, 0, 3, 350, 800, R_FAIL, "v6" },
387+
500, 600, 200, 200, 0, 3, 350, 800, R_FAIL, "v6" },
388388
/* mixed ip6+4, v6 starts, v4 never starts due to high HE, TIMEOUT */
389389
{ 8, TURL, "test.com:123:192.0.2.1,::1", CURL_IPRESOLVE_V4,
390-
400, 150, 500, 500, 1, 0, 400, 600, R_FAIL, NULL },
390+
400, 150, 500, 500, 1, 0, 400, 600, R_FAIL, NULL },
391391
/* mixed ip4+6, but only use v4, check it uses full connect timeout,
392-
although another address of the 'wrong' family is availbale */
392+
although another address of the 'wrong' family is available */
393393
{ 9, TURL, "test.com:123:::1,192.0.2.1", CURL_IPRESOLVE_V6,
394-
400, 150, 500, 500, 0, 1, 400, 600, R_FAIL, NULL },
394+
400, 150, 500, 500, 0, 1, 400, 600, R_FAIL, NULL },
395395
/* mixed ip4+6, but only use v6, check it uses full connect timeout,
396-
although another address of the 'wrong' family is availbale */
396+
although another address of the 'wrong' family is available */
397397
#endif
398398
};
399399

0 commit comments

Comments
 (0)