summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-15 12:16:05 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-15 12:16:05 +0000
commit8431a6f2e2585bbeb9de72939dd423b9f6a1d418 (patch)
tree780cf065351c1006994981f05336804b85651c0a /libc
parentaa65f3e76681aae456fe5a1c99e58f534e63b740 (diff)
stupid cut-n-paste bug
-Erik
Diffstat (limited to 'libc')
-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);
}