tidy-up: miscellaneous

- `N byte` -> `N-byte` or `N bytes`.
- INTERNALS.md: language tweaks.
- schannel: language tweak in comment/error message.
- socks_gssapi, socks_sspi: simplify composing an error message.
  (at a cost of 8 extra constant string bytes.)
- m4/curl-compilers.m4: fix typo in link (in comment).
- contrithanks.sh: fix indent, drop stray `;` terminator.
- lib, src, tests: drop/fix a bunch of badwords.
- fix typos in comments.
- fix indent, stray spaces.

Some of these spotted by GitHub Code Quality and Copilot

Closes #22009
This commit is contained in:
Viktor Szakats 2026-06-12 00:33:40 +02:00
parent 5bff1c35f1
commit 0ffab25b6c
No known key found for this signature in database
158 changed files with 357 additions and 366 deletions

View file

@ -75,9 +75,8 @@ use globalconfig qw(
#######################################################################
# pidfromfile returns the pid stored in the given pidfile. The value
# of the returned pid will never be a negative value. It will be zero
# on any file related error or if a pid can not be extracted from the
# given file.
# of the returned pid is never a negative value. It is zero on any file
# related error or if a pid can not be extracted from the given file.
#
sub pidfromfile {
my $pidfile = $_[0];
@ -115,9 +114,9 @@ sub winpid_to_pid {
#######################################################################
# pidexists checks if a process with a given pid exists and is alive.
# This will return the positive pid if the process exists and is alive.
# This will return the negative pid if the process exists differently.
# This will return 0 if the process could not be found.
# This returns the positive pid if the process exists and is alive.
# This returns the negative pid if the process exists differently.
# This returns 0 if the process could not be found.
#
sub pidexists {
my $pid = $_[0];
@ -291,11 +290,11 @@ sub pidwait {
#######################################################################
# processexists checks if a process with the pid stored in the given
# pidfile exists and is alive. This will return 0 on any file related
# pidfile exists and is alive. This returns 0 on any file related
# error or if a pid can not be extracted from the given file. When a
# process with the same pid as the one extracted from the given file
# is currently alive this returns that positive pid. Otherwise, when
# the process is not alive, will return the negative value of the pid.
# the process is not alive, it returns the negative value of the pid.
#
sub processexists {
use POSIX ":sys_wait_h";