From 5d1fa1be240018a53364654f4b5005a1e4d27093 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 25 Jul 2009 19:52:07 +0200 Subject: Fix return value of sftp_tell64(). --- include/libssh/sftp.h | 2 +- libssh/sftp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 8b28318..33f16b3 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -478,7 +478,7 @@ unsigned long sftp_tell(SFTP_FILE *file); * of the file associated with the file descriptor. < 0 on * error. */ -u64 sftp_tell64(SFTP_FILE *file); +uint64_t sftp_tell64(SFTP_FILE *file); /** * @brief Rewinds the position of the file pointer to the beginning of the diff --git a/libssh/sftp.c b/libssh/sftp.c index e888dc2..319e96f 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -1780,7 +1780,7 @@ unsigned long sftp_tell(SFTP_FILE *file) { return (unsigned long)file->offset; } /* Report current byte position in file. */ -u64 sftp_tell64(SFTP_FILE *file) { +uint64_t sftp_tell64(SFTP_FILE *file) { return (u64)file->offset; } -- cgit