Fix sysdeps/unix/sysv/linux/powerpc/mmap64.c
Andreas Jaeger
aj@suse.de
Wed Feb 16 04:40:00 GMT 2000
I'm appending patch to fix a warning.
Please apply for glibc 2.2.
Andreas
2000-02-16 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix return
value.
============================================================
Index: sysdeps/unix/sysv/linux/powerpc/mmap64.c
--- sysdeps/unix/sysv/linux/powerpc/mmap64.c 2000/01/27 23:40:48 1.1
+++ sysdeps/unix/sysv/linux/powerpc/mmap64.c 2000/02/16 12:39:51
@@ -50,11 +50,11 @@
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;
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list