From 109014ca82167257d721f3ca5119a7c3f531802e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 16 Feb 2000 18:32:23 +0000 Subject: Update. 2000-02-16 Andreas Jaeger * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix return value. 2000-02-16 Andreas Jaeger * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c (ftruncate64): Fix typo. --- sysdeps/unix/sysv/linux/powerpc/ftruncate64.c | 2 +- sysdeps/unix/sysv/linux/powerpc/mmap64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/powerpc/ftruncate64.c b/sysdeps/unix/sysv/linux/powerpc/ftruncate64.c index 379f727..a39624b 100644 --- a/sysdeps/unix/sysv/linux/powerpc/ftruncate64.c +++ b/sysdeps/unix/sysv/linux/powerpc/ftruncate64.c @@ -47,7 +47,7 @@ ftruncate64 (fd, length) #ifndef __ASSUME_TRUNCATE64_SYSCALL int saved_errno = errno; #endif - int result = __syscall_ftruncate64 (fd, off64_length); + int result = __syscall_ftruncate64 (fd, length); #ifndef __ASSUME_TRUNCATE64_SYSCALL if (result != -1 || errno != ENOSYS) diff --git a/sysdeps/unix/sysv/linux/powerpc/mmap64.c b/sysdeps/unix/sysv/linux/powerpc/mmap64.c index 135ed99..590d92e 100644 --- a/sysdeps/unix/sysv/linux/powerpc/mmap64.c +++ b/sysdeps/unix/sysv/linux/powerpc/mmap64.c @@ -50,11 +50,11 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset) int saved_errno = errno; #endif /* This will be always 12, no matter what page size is. */ - int result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags, + __ptr_t result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags, fd, (off_t) (offset >> PAGE_SHIFT)); #ifndef __ASSUME_MMAP2_SYSCALL - if (result != -1 || errno != ENOSYS) + if (result != (__ptr_t) -1 || errno != ENOSYS) #endif return result; -- cgit v1.1