1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-07 08:02:56 +03:00

tidy-up: replace tabs and other whitespace (#885)

There are a few non-whitespace changes, see them here:
https://github.com/libssh2/libssh2/pull/885/files?w=1
This commit is contained in:
Viktor Szakats
2023-03-27 18:28:27 +02:00
committed by GitHub
parent 0d08974633
commit 2f16d8105c
104 changed files with 1107 additions and 1110 deletions

View File

@@ -124,8 +124,7 @@ $(DSP): win32/msvcproj.head win32/msvcproj.foot Makefile.am
for file in $$sorted_hdrs; do \ for file in $$sorted_hdrs; do \
echo "# Begin Source File"; \ echo "# Begin Source File"; \
echo ""; \ echo ""; \
if [ "$$file" = "libssh2_config.h" ]; \ if [ "$$file" = "libssh2_config.h" ]; then \
then \
echo "SOURCE=.\\"$$file; \ echo "SOURCE=.\\"$$file; \
else \ else \
echo "SOURCE=..\\src\\"$$file; \ echo "SOURCE=..\\src\\"$$file; \

View File

@@ -20,4 +20,3 @@ Added in libssh2 1.2
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_agent_init(3) .BR libssh2_agent_init(3)
.BR libssh2_agent_disconnect(3) .BR libssh2_agent_disconnect(3)

View File

@@ -19,4 +19,3 @@ Added in libssh2 1.9
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_agent_init(3) .BR libssh2_agent_init(3)
.BR libssh2_agent_set_identity_path(3) .BR libssh2_agent_set_identity_path(3)

View File

@@ -21,4 +21,3 @@ Added in libssh2 1.2
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_agent_connect(3) .BR libssh2_agent_connect(3)
.BR libssh2_agent_get_identity(3) .BR libssh2_agent_get_identity(3)

View File

@@ -19,4 +19,3 @@ Added in libssh2 1.9
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_agent_init(3) .BR libssh2_agent_init(3)
.BR libssh2_agent_get_identity_path(3) .BR libssh2_agent_get_identity_path(3)

View File

@@ -24,4 +24,3 @@ Nothing
Added in libssh2 1.2.5 Added in libssh2 1.2.5
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_keepalive_send(3) .BR libssh2_keepalive_send(3)

View File

@@ -26,4 +26,3 @@ Added in libssh2 1.2
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_knownhost_readfile(3) .BR libssh2_knownhost_readfile(3)
.BR libssh2_knownhost_add(3) .BR libssh2_knownhost_add(3)

View File

@@ -43,4 +43,3 @@ Added in libssh2 1.2
.BR libssh2_knownhost_get(3) .BR libssh2_knownhost_get(3)
.BR libssh2_knownhost_readline(3) .BR libssh2_knownhost_readline(3)
.BR libssh2_knownhost_writefile(3) .BR libssh2_knownhost_writefile(3)

View File

@@ -32,4 +32,3 @@ block.
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_session_init_ex(3) .BR libssh2_session_init_ex(3)
.BR libssh2_channel_open_ex(3) .BR libssh2_channel_open_ex(3)

View File

@@ -29,4 +29,3 @@ block.
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_session_init_ex(3) .BR libssh2_session_init_ex(3)
.BR libssh2_channel_open_ex(3) .BR libssh2_channel_open_ex(3)

View File

@@ -62,4 +62,3 @@ returned by the server.
block. block.
.SH SEE ALSO .SH SEE ALSO
.BR libssh2_sftp_close_handle(3) .BR libssh2_sftp_close_handle(3)

View File

@@ -2,12 +2,31 @@ AUTOMAKE_OPTIONS = foreign nostdinc
EXTRA_DIST = libssh2_config_cmake.h.in CMakeLists.txt EXTRA_DIST = libssh2_config_cmake.h.in CMakeLists.txt
# samples # examples
noinst_PROGRAMS = direct_tcpip ssh2 scp scp_nonblock scp_write \ noinst_PROGRAMS = \
scp_write_nonblock sftp sftp_nonblock sftp_write sftp_write_nonblock \ direct_tcpip \
sftp_mkdir sftp_mkdir_nonblock sftp_RW_nonblock sftp_write_sliding \ scp \
sftpdir sftpdir_nonblock ssh2_exec ssh2_agent ssh2_agent_forwarding \ scp_nonblock \
ssh2_echo sftp_append subsystem_netconf tcpip-forward scp_write \
scp_write_nonblock \
sftp \
sftp_RW_nonblock \
sftp_append \
sftp_mkdir \
sftp_mkdir_nonblock \
sftp_nonblock \
sftp_write \
sftp_write_nonblock \
sftp_write_sliding \
sftpdir \
sftpdir_nonblock \
ssh2 \
ssh2_agent \
ssh2_agent_forwarding \
ssh2_echo \
ssh2_exec \
subsystem_netconf \
tcpip-forward
if HAVE_SYS_UN_H if HAVE_SYS_UN_H
noinst_PROGRAMS += x11 noinst_PROGRAMS += x11

View File

@@ -37,7 +37,8 @@ fi
datestamp=`LC_TIME=C date -u` datestamp=`LC_TIME=C date -u`
# Replace in-place version number in header file: # Replace in-place version number in header file:
sed -i.bak -e 's/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "'$libversion'"/g' \ sed -i.bak \
-e 's/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "'$libversion'"/g' \
-e 's/^#define LIBSSH2_VERSION_NUM .*/#define LIBSSH2_VERSION_NUM 0x'$numeric'/g' \ -e 's/^#define LIBSSH2_VERSION_NUM .*/#define LIBSSH2_VERSION_NUM 0x'$numeric'/g' \
-e 's/^#define LIBSSH2_VERSION_MAJOR .*/#define LIBSSH2_VERSION_MAJOR '$major'/g' \ -e 's/^#define LIBSSH2_VERSION_MAJOR .*/#define LIBSSH2_VERSION_MAJOR '$major'/g' \
-e 's/^#define LIBSSH2_VERSION_MINOR .*/#define LIBSSH2_VERSION_MINOR '$minor'/g' \ -e 's/^#define LIBSSH2_VERSION_MINOR .*/#define LIBSSH2_VERSION_MINOR '$minor'/g' \
@@ -53,11 +54,10 @@ echo "datestamp $datestamp"
if test -n "$only"; then if test -n "$only"; then
# done! # done!
exit; exit
fi fi
findprog() findprog() {
{
file="$1" file="$1"
for part in `echo $PATH| tr ':' ' '`; do for part in `echo $PATH| tr ':' ' '`; do
path="$part/$file" path="$part/$file"

View File

@@ -21,5 +21,3 @@ void _NonAppStop()
printf("<Press any key to close screen> "); printf("<Press any key to close screen> ");
getcharacter(); getcharacter();
} }

View File

@@ -300,5 +300,3 @@ int main ( void )
#endif /* __NOVELL_LIBC__ */ #endif /* __NOVELL_LIBC__ */
#endif /* NETWARE */ #endif /* NETWARE */

View File

@@ -39,7 +39,8 @@ INTEGRATION_TESTS = \
# Enable this once the tests are working # Enable this once the tests are working
#TESTS += $(INTEGRATION_TESTS) #TESTS += $(INTEGRATION_TESTS)
check_PROGRAMS += $(INTEGRATION_TESTS) check_PROGRAMS += $(INTEGRATION_TESTS)
librunner_la_SOURCES = runner.c runner.h \ librunner_la_SOURCES = \
runner.c runner.h \
session_fixture.c session_fixture.h \ session_fixture.c session_fixture.h \
openssh_fixture.c openssh_fixture.h openssh_fixture.c openssh_fixture.h
LDADD = librunner.la LDADD = librunner.la

View File

@@ -219,4 +219,3 @@ $ write pt "[gnv.common_src]libssh2_''versionname'''datename'_src.bck"
$close pt $close pt
$exit $exit
$ endsubroutine $ endsubroutine

View File

@@ -512,5 +512,3 @@ free( helpfile );
return( status ); return( status );
} }

View File

@@ -312,8 +312,3 @@ When you have built the shared library and the help library,
you can build a PCSI kit by issueing this command: you can build a PCSI kit by issueing this command:
@libssh2_make_kit.dcl @libssh2_make_kit.dcl