diff --git a/include/libssh2.h b/include/libssh2.h index d59f2ffc..d794b8e9 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -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. */ diff --git a/include/libssh2_sftp.h b/include/libssh2_sftp.h index ab7b0af4..30d96390 100644 --- a/include/libssh2_sftp.h +++ b/include/libssh2_sftp.h @@ -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) \ diff --git a/os400/libssh2rpg/libssh2.rpgle.in b/os400/libssh2rpg/libssh2.rpgle.in index 4ecc36fd..f7a8b5bd 100644 --- a/os400/libssh2rpg/libssh2.rpgle.in +++ b/os400/libssh2rpg/libssh2.rpgle.in @@ -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') diff --git a/src/agent.c b/src/agent.c index 3126626e..8e436872 100644 --- a/src/agent.c +++ b/src/agent.c @@ -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) \ diff --git a/src/session.h b/src/session.h index c77fab65..e1be1ce2 100644 --- a/src/session.h +++ b/src/session.h @@ -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));