about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/mmap64.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-02-16 18:32:23 +0000
committerUlrich Drepper <drepper@redhat.com>2000-02-16 18:32:23 +0000
commit109014ca82167257d721f3ca5119a7c3f531802e (patch)
treecb40046c34dc91012b02422ece42a2480860100c /sysdeps/unix/sysv/linux/powerpc/mmap64.c
parent1dc235884e01c29205572c28890166649794ca5c (diff)
downloadglibc-109014ca82167257d721f3ca5119a7c3f531802e.tar.gz
glibc-109014ca82167257d721f3ca5119a7c3f531802e.tar.xz
glibc-109014ca82167257d721f3ca5119a7c3f531802e.zip
Update.
2000-02-16  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix return
	value.

2000-02-16  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c (ftruncate64): Fix
	typo.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/mmap64.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/mmap64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/mmap64.c b/sysdeps/unix/sysv/linux/powerpc/mmap64.c
index 135ed99a36..590d92ef9d 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;