summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileops.c4
-rw-r--r--src/fileops.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 39d0801..78cc937 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -278,9 +278,9 @@ void mscp_close(mf *f)
free(f);
}
-int mscp_lseek(mf *f, size_t off)
+off_t mscp_lseek(mf *f, off_t off)
{
- int ret;
+ off_t ret;
if (f->remote) {
ret = sftp_seek64(f->remote, off);
diff --git a/src/fileops.h b/src/fileops.h
index 8dc6e5b..cd35992 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -45,7 +45,7 @@ typedef struct mf_struct mf;
mf *mscp_open(const char *path, int flags, mode_t mode, sftp_session sftp);
void mscp_close(mf *f);
-int mscp_lseek(mf *f, size_t off);
+off_t mscp_lseek(mf *f, off_t off);
/* mscp_setstat() involves chmod and truncate. It executes both at
* once via a single SFTP command (sftp_setstat()).