This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |