mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
tidy-up: miscellaneous
- drop stray duplicate empty lines in docs, scripts, test data, include, examples, tests. - drop duplicate PP parenthesis. - curl-functions.m4: move literals to the right side in if expressions, to match rest of the source code. - FAQ.md: delete language designator from an URL. - packages: apply clang-format (OS400, VMS). - scripts/schemetable.c: apply clang-format. - data320: delete duplicate empty line that doesn't change the outcome. - spacecheck: extend to check for duplicate empty lines (with exceptions.) - fix whitespace nits Closes #19936
This commit is contained in:
parent
141ce4be64
commit
fe8393d7db
116 changed files with 674 additions and 1039 deletions
|
|
@ -98,7 +98,6 @@ our $hstpubsha256f = 'curl_host_rsa_key.pub_sha256'; # sha256 hash of host pu
|
|||
our $cliprvkeyf = 'curl_client_key'; # client private key file
|
||||
our $clipubkeyf = 'curl_client_key.pub'; # client public key file
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Absolute paths where to look for sftp-server plugin, when not in PATH
|
||||
#
|
||||
|
|
@ -124,7 +123,6 @@ our @sftppath = qw(
|
|||
/opt/ssh/libexec
|
||||
);
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Absolute paths where to look for httptlssrv (gnutls-serv), when not in PATH
|
||||
#
|
||||
|
|
@ -148,7 +146,6 @@ our @httptlssrvpath = qw(
|
|||
/opt/gnutls/libexec
|
||||
);
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Create or overwrite the given file with lines from an array of strings
|
||||
#
|
||||
|
|
@ -174,7 +171,6 @@ sub dump_array {
|
|||
return $error;
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the given file
|
||||
#
|
||||
|
|
@ -190,7 +186,6 @@ sub display_file {
|
|||
print "=== End of file $filename\n";
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display first line of the given file
|
||||
#
|
||||
|
|
@ -205,7 +200,6 @@ sub display_file_top {
|
|||
print "=== End of file $filename\n";
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the ssh daemon config file
|
||||
#
|
||||
|
|
@ -213,7 +207,6 @@ sub display_sshdconfig {
|
|||
display_file($sshdconfig);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the ssh client config file
|
||||
#
|
||||
|
|
@ -221,7 +214,6 @@ sub display_sshconfig {
|
|||
display_file($sshconfig);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the sftp client config file
|
||||
#
|
||||
|
|
@ -229,7 +221,6 @@ sub display_sftpconfig {
|
|||
display_file($sftpconfig);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the ssh daemon log file
|
||||
#
|
||||
|
|
@ -238,7 +229,6 @@ sub display_sshdlog {
|
|||
display_file($sshdlog);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the ssh client log file
|
||||
#
|
||||
|
|
@ -247,7 +237,6 @@ sub display_sshlog {
|
|||
display_file($sshlog);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Display contents of the sftp client log file
|
||||
#
|
||||
|
|
@ -256,7 +245,6 @@ sub display_sftplog {
|
|||
display_file($sftplog);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find a file somewhere in the given path
|
||||
#
|
||||
|
|
@ -273,7 +261,6 @@ sub find_file {
|
|||
return "";
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find an executable file somewhere in the given path
|
||||
#
|
||||
|
|
@ -292,7 +279,6 @@ sub find_exe_file {
|
|||
return "";
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find a file in environment path or in our sftppath
|
||||
#
|
||||
|
|
@ -304,7 +290,6 @@ sub find_file_spath {
|
|||
return find_file($filename, @spath);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find an executable file in environment path or in our httptlssrvpath
|
||||
#
|
||||
|
|
@ -316,7 +301,6 @@ sub find_exe_file_hpath {
|
|||
return find_exe_file($filename, @hpath);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find ssh daemon and return canonical filename
|
||||
#
|
||||
|
|
@ -324,7 +308,6 @@ sub find_sshd {
|
|||
return find_file_spath($sshdexe);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find ssh client and return canonical filename
|
||||
#
|
||||
|
|
@ -332,7 +315,6 @@ sub find_ssh {
|
|||
return find_file_spath($sshexe);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find sftp-server plugin and return canonical filename
|
||||
#
|
||||
|
|
@ -340,7 +322,6 @@ sub find_sftpsrv {
|
|||
return find_file_spath($sftpsrvexe);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find sftp client and return canonical filename
|
||||
#
|
||||
|
|
@ -348,7 +329,6 @@ sub find_sftp {
|
|||
return find_file_spath($sftpexe);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find ssh-keygen and return canonical filename
|
||||
#
|
||||
|
|
@ -356,7 +336,6 @@ sub find_sshkeygen {
|
|||
return find_file_spath($sshkeygenexe);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Find httptlssrv (gnutls-serv) and return canonical filename
|
||||
#
|
||||
|
|
@ -376,7 +355,6 @@ sub find_httptlssrv {
|
|||
return "";
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# Return version info for the given ssh client or server binaries
|
||||
#
|
||||
|
|
@ -437,7 +415,6 @@ sub sshversioninfo {
|
|||
return ($sshid, $versnum, $versstr, $error);
|
||||
}
|
||||
|
||||
|
||||
#***************************************************************************
|
||||
# End of library
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue