summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2022-12-24 20:35:02 +0000
committerJames E Keenan <jkeenan@cpan.org>2022-12-29 09:39:58 -0500
commit0c6362adf0496a5a25d8b78534541f988ac9ce16 (patch)
tree2568e25b5103297354fd1cdd9f80b8ec71871b76 /util.c
parentf4ae97d054e8c75132cb621539374553cf48f64d (diff)
downloadperl-0c6362adf0496a5a25d8b78534541f988ac9ce16.tar.gz
Correct typos as per GH 20435
In GH 20435 many typos in our C code were corrected. However, this pull request was not applied to blead and developed merge conflicts. I extracted diffs for the individual modified files and applied them with 'git apply', excepting four files where patch conflicts were reported. Those files were: handy.h locale.c regcomp.c toke.c We can handle these in a subsequent commit. Also, had to run these two programs to keep 'make test_porting' happy: $ ./perl -Ilib regen/uconfig_h.pl $ ./perl -Ilib regen/regcomp.pl regnodes.h
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 8da7c11fa7..a01a28c848 100644
--- a/util.c
+++ b/util.c
@@ -557,7 +557,7 @@ Free_t Perl_mfree (Malloc_t where)
/* This is the value stored in *retlen in the two delimcpy routines below when
* there wasn't enough room in the destination to store everything it was asked
* to. The value is deliberately very large so that hopefully if code uses it
- * unquestioninly to access memory, it will likely segfault. And it is small
+ * unquestioningly to access memory, it will likely segfault. And it is small
* enough that if the caller does some arithmetic on it before accessing, it
* won't overflow into a small legal number. */
#define DELIMCPY_OUT_OF_BOUNDS_RET I32_MAX
@@ -3609,7 +3609,7 @@ Perl_set_context(void *t)
cthread_set_data(cthread_self(), t);
# else
/* We set thread-specific value always, as C++ code has to read it with
- * pthreads, beacuse the declaration syntax for thread local storage for C11
+ * pthreads, because the declaration syntax for thread local storage for C11
* is incompatible with C++, meaning that we can't expose the thread local
* variable to C++ code. */
{
@@ -4397,7 +4397,7 @@ S_socketpair_udp (int fd[2]) {
addresses[i].sin_family = AF_INET;
addresses[i].sin_addr.s_addr = htonl(INADDR_LOOPBACK);
- addresses[i].sin_port = 0; /* kernel choses port. */
+ addresses[i].sin_port = 0; /* kernel chooses port. */
if (PerlSock_bind(sockets[i], (struct sockaddr *) &addresses[i],
sizeof(struct sockaddr_in)) == -1)
goto tidy_up_and_fail;
@@ -4569,7 +4569,7 @@ Perl_my_socketpair (int family, int type, int protocol, int fd[2]) {
memset(&listen_addr, 0, sizeof(listen_addr));
listen_addr.sin_family = AF_INET;
listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
- listen_addr.sin_port = 0; /* kernel choses port. */
+ listen_addr.sin_port = 0; /* kernel chooses port. */
if (PerlSock_bind(listener, (struct sockaddr *) &listen_addr,
sizeof(listen_addr)) == -1)
goto tidy_up_and_fail;