diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-25 19:52:07 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-25 19:52:07 +0200 |
commit | 5d1fa1be240018a53364654f4b5005a1e4d27093 (patch) | |
tree | 307ce55725496a53701ffeba5c824410385f55f1 | |
parent | c8e82528fcaf20000eb6b99793eee120655405a5 (diff) | |
download | libssh-5d1fa1be240018a53364654f4b5005a1e4d27093.tar.gz libssh-5d1fa1be240018a53364654f4b5005a1e4d27093.tar.xz libssh-5d1fa1be240018a53364654f4b5005a1e4d27093.zip |
Fix return value of sftp_tell64().
-rw-r--r-- | include/libssh/sftp.h | 2 | ||||
-rw-r--r-- | libssh/sftp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 8b283185..33f16b3e 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 e888dc21..319e96f2 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; } |