[Glibc-bsd-commits] r3210 - trunk/glibc-ports/kfreebsd
Robert Millan
rmh at alioth.debian.org
Thu Dec 16 16:44:55 UTC 2010
Author: rmh
Date: 2010-12-16 16:44:43 +0000 (Thu, 16 Dec 2010)
New Revision: 3210
Modified:
trunk/glibc-ports/kfreebsd/mmap.c
Log:
Fix a warning (and a typo).
Modified: trunk/glibc-ports/kfreebsd/mmap.c
===================================================================
--- trunk/glibc-ports/kfreebsd/mmap.c 2010-12-16 16:43:42 UTC (rev 3209)
+++ trunk/glibc-ports/kfreebsd/mmap.c 2010-12-16 16:44:43 UTC (rev 3210)
@@ -57,13 +57,13 @@
fd = -1;
/* First try the new syscall. */
- result = INLINE_SYSCALL (mmap, 6, addr, len, prot, flags, fd, offset);
+ result = (void *) INLINE_SYSCALL (mmap, 6, addr, len, prot, flags, fd, offset);
#ifndef __ASSUME_MMAP_SYSCALL
if (result == (void *) (-1) && errno == ENOSYS)
{
- /* New syscall not available, us the old one. */
- result = INLINE_SYSCALL (freebsd6_mmap, 7, addr, len, prot, flags, fd, 0, offset);
+ /* New syscall not available, use the old one. */
+ result = (void *) INLINE_SYSCALL (freebsd6_mmap, 7, addr, len, prot, flags, fd, 0, offset);
if (result != (void *) (-1) && fd >= 0 && len > 0)
{
/* Force an update of the atime. POSIX:2001 mandates that this happens
More information about the Glibc-bsd-commits
mailing list