libssh2_sftp_seek() and libssh2_sftp_tell() are NB-SAFE, since they
only set variables
This commit is contained in:
parent
c43c390a7d
commit
9ff217b6d2
@ -1454,20 +1454,20 @@ LIBSSH2_API int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle, LIBSSH2_SFTP_
|
||||
/* {{{ libssh2_sftp_seek
|
||||
* Set the read/write pointer to an arbitrary position within the file
|
||||
*/
|
||||
/* libssh2_sftp_seek - NB-UNSAFE?? */
|
||||
/* libssh2_sftp_seek - NB-SAFE */
|
||||
LIBSSH2_API void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, size_t offset)
|
||||
{
|
||||
handle->u.file.offset = offset;
|
||||
handle->u.file.offset = offset;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ libssh2_sftp_tell
|
||||
* Return the current read/write pointer's offset
|
||||
*/
|
||||
/* libssh2_sftp_tell - NB-UNSAFE?? */
|
||||
/* libssh2_sftp_tell - NB-SAFE */
|
||||
LIBSSH2_API size_t libssh2_sftp_tell(LIBSSH2_SFTP_HANDLE *handle)
|
||||
{
|
||||
return handle->u.file.offset;
|
||||
return handle->u.file.offset;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user