From 9ff217b6d2d54aaf5839b1a916135bddfac49855 Mon Sep 17 00:00:00 2001 From: James Housley Date: Sun, 22 Apr 2007 16:42:54 +0000 Subject: [PATCH] libssh2_sftp_seek() and libssh2_sftp_tell() are NB-SAFE, since they only set variables --- src/sftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index 9457a44..467f486 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -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; } /* }}} */