summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/pread_write.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/pread_write.c b/libc/sysdeps/linux/common/pread_write.c
index 319de5af1..4aa1fdf7e 100644
--- a/libc/sysdeps/linux/common/pread_write.c
+++ b/libc/sysdeps/linux/common/pread_write.c
@@ -61,11 +61,11 @@ static ssize_t __fake_pread_write(int fd, void *buf,
{
int save_errno;
ssize_t result;
- off64_t old_offset;
+ off_t old_offset;
/* Since we must not change the file pointer preserve the
* value so that we can restore it later. */
- if ((old_offset=lseek64(fd, 0, SEEK_CUR)) == (off64_t) -1)
+ if ((old_offset=lseek(fd, 0, SEEK_CUR)) == (off_t) -1)
return -1;
/* Set to wanted position. */
@@ -83,13 +83,13 @@ static ssize_t __fake_pread_write(int fd, void *buf,
/* Now we have to restore the position. If this fails we
* have to return this as an error. */
save_errno = errno;
- if (lseek (fd, old_offset, SEEK_SET) == (__off_t) -1)
+ if (lseek(fd, old_offset, SEEK_SET) == (__off_t) -1)
{
if (result == -1)
- __set_errno (save_errno);
+ __set_errno(save_errno);
return -1;
}
- __set_errno (save_errno);
+ __set_errno(save_errno);
return(result);
}