mirror of
https://github.com/curl/curl.git
synced 2026-08-05 04:16:13 +03:00
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:
parent
a87383828e
commit
1b48c6148a
32 changed files with 62 additions and 71 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 $_;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue