1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-24 14:53:03 +03:00

tidy-up: fix typos found by typos-cli 1.36.2

Closes #1654
This commit is contained in:
Viktor Szakats
2025-09-13 22:30:34 +02:00
parent 4cb8398fa7
commit c3e6dbd469
5 changed files with 9 additions and 9 deletions

View File

@@ -610,7 +610,7 @@ typedef struct _LIBSSH2_POLLFD {
* Flags can be:
* 0: Normal initialize
* LIBSSH2_INIT_NO_CRYPTO: Do not initialize the crypto library (ie.
* OPENSSL_add_cipher_algoritms() for OpenSSL
* OPENSSL_add_cipher_algorithms() for OpenSSL
*
* Returns 0 if succeeded, or a negative value for error.
*/

View File

@@ -291,7 +291,7 @@ LIBSSH2_API int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle,
/* Miscellaneous Ops */
LIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,
const char *source_filename,
unsigned int srouce_filename_len,
unsigned int source_filename_len,
const char *dest_filename,
unsigned int dest_filename_len,
long flags);
@@ -305,7 +305,7 @@ LIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,
LIBSSH2_API int libssh2_sftp_posix_rename_ex(LIBSSH2_SFTP *sftp,
const char *source_filename,
size_t srouce_filename_len,
size_t source_filename_len,
const char *dest_filename,
size_t dest_filename_len);
#define libssh2_sftp_posix_rename(sftp, sourcefile, destfile) \

View File

@@ -1639,7 +1639,7 @@
d typemask value like(libssh2_Cint)
d knownhost * libssh2_knownhost *
* this function is identital to the above one, but also takes a port
* this function is identical to the above one, but also takes a port
* argument that allows libssh2 to do a better check.
d libssh2_knownhost_checkp...
d pr extproc('libssh2_knownhost_checkp')

View File

@@ -328,7 +328,7 @@ cleanup:
}
#define RECV_SEND_ALL(func, agent, buffer, length, total) \
DWORD bytes_transfered; \
DWORD bytes_transferred; \
BOOL ret; \
DWORD err; \
int rc; \
@@ -336,13 +336,13 @@ cleanup:
while(*total < length) { \
if(!agent->pending_io) \
ret = func(agent->pipe, (char *)buffer + *total, \
(DWORD)(length - *total), &bytes_transfered, \
(DWORD)(length - *total), &bytes_transferred, \
&agent->overlapped); \
else \
ret = GetOverlappedResult(agent->pipe, &agent->overlapped, \
&bytes_transfered, FALSE); \
&bytes_transferred, FALSE); \
\
*total += bytes_transfered; \
*total += bytes_transferred; \
if(!ret) { \
err = GetLastError(); \
if((!agent->pending_io && ERROR_IO_PENDING == err) \

View File

@@ -41,7 +41,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
/* Conveniance-macros to allow code like this;
/* Convenience-macros to allow code like this;
int rc = BLOCK_ADJUST(rc, session, session_startup(session, sock));