tidy-up: miscellaneous

- schannel: delete superfluous parenthesis.
- tftp: delete stray space from log output.
- ws: update guard comment.
- docs/examples: constify variables.
- runtests/servers: enclose unknown parameter between quotes.
- scripts/perlcheck.sh: drop redundant grep `-E` option.
- THANKS: move names from comments to THANKS.
- sync `--depth` option style across scripts.
- sync git repo URL ending between some scripts.
- BINDINGS.md: drop protocol from archive.org URL path.
- whitespace, indent, unfold lines.

Closes #19565
This commit is contained in:
Viktor Szakats 2025-10-25 23:32:14 +02:00
parent a87383828e
commit 1b48c6148a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
32 changed files with 62 additions and 71 deletions

View file

@ -31,7 +31,7 @@
# ECH command line args
def CombinationRepetitionUtil(chosen, arr, badarr, index,
r, start, end):
r, start, end):
# Current combination is ready,
# print it
@ -68,9 +68,9 @@ def CombinationRepetitionUtil(chosen, arr, badarr, index,
# with next (Note that i+1 is passed,
# but index is not changed)
CombinationRepetitionUtil(chosen, arr, badarr, index + 1,
r, start, end)
r, start, end)
CombinationRepetitionUtil(chosen, arr, badarr, index,
r, start + 1, end)
r, start + 1, end)
# The main function that prints all
# combinations of size r in arr[] of
@ -94,5 +94,3 @@ r = 8
n = len(arr) - 1
CombinationRepetition(arr, badarr, n, r)
# This code is contributed by Vaibhav Kumar 12.

View file

@ -3044,7 +3044,7 @@ while(@ARGV) {
}
}
else {
print STDERR "\nWarning: ftpserver.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: ftpserver.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -398,7 +398,7 @@ sub writearray {
my ($filename, $arrayref)=@_;
open(my $temp, ">", "$filename") || die "Failure writing file";
binmode($temp,":raw"); # Cygwin fix by Kevin Roth
binmode($temp,":raw"); # Cygwin fix
for(@$arrayref) {
print $temp $_;
}

View file

@ -140,7 +140,7 @@ while(@ARGV) {
$verbose = 1;
}
else {
print STDERR "\nWarning: http-server.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: http-server.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -102,7 +102,7 @@ while(@ARGV) {
}
}
elsif($ARGV[0]) {
print STDERR "\nWarning: http2-server.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: http2-server.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -102,7 +102,7 @@ while(@ARGV) {
}
}
else {
print STDERR "\nWarning: http3-server.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: http3-server.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -104,7 +104,7 @@ while(@ARGV) {
$verbose = 1;
}
else {
print STDERR "\nWarning: rtspserver.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: rtspserver.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -176,7 +176,7 @@ while(@ARGV) {
$mtls = 1;
}
else {
print STDERR "\nWarning: secureserver.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: secureserver.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -191,7 +191,7 @@ while(@ARGV) {
}
}
else {
print STDERR "\nWarning: sshserver.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: sshserver.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}

View file

@ -104,7 +104,7 @@ while(@ARGV) {
$verbose = 1;
}
else {
print STDERR "\nWarning: tftpserver.pl unknown parameter: $ARGV[0]\n";
print STDERR "\nWarning: tftpserver.pl unknown parameter: '$ARGV[0]'\n";
}
shift @ARGV;
}