From 72841ec12d5865b4f020dc23c64553deb2fe15d6 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Fri, 8 Sep 2023 17:19:13 +0900 Subject: fix: use off_t for lseek --- src/fileops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileops.h') 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()). -- cgit v1.2.3