diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2014-06-19 04:55:00 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2014-06-19 04:55:00 +0000 |
commit | 8efb41982974cce520d3ad1f19a1f7460abd46f6 (patch) | |
tree | bd661e6a779021501205cb17e42ffd8284863f83 | |
parent | cd9dcb03072cea898bb6b3dc8916b57bab99debc (diff) |
Notes
-rw-r--r-- | lib/libc/sys/mmap.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index cfdb9448ea38..0fa03baa374d 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)); + } } |