svn commit: r267900 - stable/10/lib/libc/sys
Konstantin Belousov
kib at FreeBSD.org
Thu Jun 26 08:27:02 UTC 2014
Author: kib
Date: Thu Jun 26 08:27:01 2014
New Revision: 267900
URL: http://svnweb.freebsd.org/changeset/base/267900
Log:
MFC r267629:
Tidy up code of the wrapper.
Modified:
stable/10/lib/libc/sys/mmap.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/lib/libc/sys/mmap.c
==============================================================================
--- stable/10/lib/libc/sys/mmap.c Thu Jun 26 08:24:18 2014 (r267899)
+++ stable/10/lib/libc/sys/mmap.c Thu Jun 26 08:27:01 2014 (r267900)
@@ -44,18 +44,13 @@ __FBSDID("$FreeBSD$");
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
void *
-mmap(addr, len, prot, flags, fd, offset)
- void * addr;
- size_t len;
- int prot;
- int flags;
- int fd;
- off_t offset;
+mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
{
- if (__getosreldate() >= 700051)
+ if (__getosreldate() >= 700051) {
return (__sys_mmap(addr, len, prot, flags, fd, offset));
- else
-
- return (__sys_freebsd6_mmap(addr, len, prot, flags, fd, 0, offset));
+ } else {
+ return (__sys_freebsd6_mmap(addr, len, prot, flags, fd, 0,
+ offset));
+ }
}
More information about the svn-src-all
mailing list