summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-26 08:27:01 +0000
committerkib <kib@FreeBSD.org>2014-06-26 08:27:01 +0000
commitb371ec04aaeccdccafd21a04b949901c090e50cb (patch)
treebde5089e915582f6c4913146b0f635af0538a183
parent5d64734c2ecedc6258eaf16aaa03e252f968dab8 (diff)
downloadFreeBSD-src-b371ec04aaeccdccafd21a04b949901c090e50cb.zip
FreeBSD-src-b371ec04aaeccdccafd21a04b949901c090e50cb.tar.gz
MFC r267629:
Tidy up code of the wrapper.
-rw-r--r--lib/libc/sys/mmap.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c
index cfdb944..0fa03ba 100644
--- a/lib/libc/sys/mmap.c
+++ b/lib/libc/sys/mmap.c
@@ -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));
+ }
}
OpenPOWER on IntegriCloud