1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

tidy-up: avoid word 'simply'

Cherry-picked from #1017
This commit is contained in:
Viktor Szakats
2023-04-30 11:23:34 +00:00
parent cda41f7cb8
commit 081c04571b
7 changed files with 10 additions and 12 deletions

View File

@ -37,7 +37,7 @@ file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
and enabled with `--cache-file=config.cache' or shortly `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)

View File

@ -30,7 +30,7 @@ truncated to fit.
\fIlongentry_maxlen\fP bytes to read data into. The format of the `longname'
field is unspecified by SFTP protocol. It MUST be suitable for use in the
output of a directory listing command (in fact, the recommended operation for
a directory listing command is to simply display this data).
a directory listing command is to display this data).
\fIlongentry_maxlen\fP - is the length of longentry in bytes. If the length of
the full directory entry is longer than the space provided by

View File

@ -21,8 +21,8 @@ Deprecated function. Use \fIlibssh2_sftp_seek64(3)\fP instead!
Move the file handle's internal pointer to an arbitrary location.
Note that libssh2 implements file pointers as a localized concept to make
file access appear more POSIX like. No packets are exchanged with the server
during a seek operation. The localized file pointer is simply used as a
convenience offset during read/write operations.
during a seek operation. The localized file pointer is used as a convenience
offset during read/write operations.
.SH SEE ALSO
.BR libssh2_sftp_open_ex(3),
.BR libssh2_sftp_seek64(3)

View File

@ -19,8 +19,8 @@ libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,
Move the file handle's internal pointer to an arbitrary location. libssh2
implements file pointers as a localized concept to make file access appear
more POSIX like. No packets are exchanged with the server during a seek
operation. The localized file pointer is simply used as a convenience offset
during read/write operations.
operation. The localized file pointer is used as a convenience offset during
read/write operations.
You MUST NOT seek during writing or reading a file with SFTP, as the internals
use outstanding packets and changing the "file position" during transit will

View File

@ -56,8 +56,7 @@ otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it is not
really a failure per se.
If this function returns 0 (zero) it should not be considered an error, but
simply that there was no error but yet no payload data got sent to the other
end.
that there was no error but yet no payload data got sent to the other end.
.SH ERRORS
\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.

View File

@ -696,7 +696,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
numbytes -= numdecrypt;
}
/* if there are bytes to copy that aren't decrypted, simply
/* if there are bytes to copy that aren't decrypted,
copy them as-is to the target buffer */
if(numbytes > 0) {

View File

@ -1475,9 +1475,8 @@ _libssh2_userauth_publickey(LIBSSH2_SESSION *session,
session->userauth_pblc_method_len = _libssh2_ntohu32(pubkeydata);
if(session->userauth_pblc_method_len > pubkeydata_len - 4)
/* the method length simply cannot be longer than the entire
passed in data, so we use this to detect crazy input
data */
/* the method length cannot be longer than the entire passed
in data, so we use this to detect crazy input data */
return _libssh2_error(session,
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED,
"Invalid public key");