diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-25 17:55:58 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-25 17:55:58 +0200 |
commit | 104e6d39ab8aef18a5d94601ba68ca4ebd381904 (patch) | |
tree | ce0b758c7c63a529f78c654aec937d02701df7bb /libssh/sftp.c | |
parent | 3f778d9a3172ae49ef2f1862c544e65dd3dc2b8d (diff) | |
download | libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.gz libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.xz libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.zip |
Add a sftp_tel64() function.
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index c9653baf..e888dc21 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -1777,7 +1777,11 @@ int sftp_seek64(SFTP_FILE *file, u64 new_offset) { /* Report current byte position in file. */ unsigned long sftp_tell(SFTP_FILE *file) { - return file->offset; + return (unsigned long)file->offset; +} +/* Report current byte position in file. */ +u64 sftp_tell64(SFTP_FILE *file) { + return (u64)file->offset; } /* Rewinds the position of the file pointer to the beginning of the file.*/ |