mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fix return value of sftp_tell64().
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user