From 104e6d39ab8aef18a5d94601ba68ca4ebd381904 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 25 Jul 2009 17:55:58 +0200 Subject: Add a sftp_tel64() function. --- libssh/sftp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libssh/sftp.c') 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.*/ -- cgit