summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-19 04:55:00 +0000
committerkib <kib@FreeBSD.org>2014-06-19 04:55:00 +0000
commit338a93135ac64d3c6d03bb50017860f1570d345e (patch)
treebd661e6a779021501205cb17e42ffd8284863f83 /lib/libc/sys
parent819c47ae81c710499f69a85d8ad3a5ed7d801498 (diff)
downloadFreeBSD-src-338a93135ac64d3c6d03bb50017860f1570d345e.zip
FreeBSD-src-338a93135ac64d3c6d03bb50017860f1570d345e.tar.gz
The time come to remove the wrapper, most likely, but tidy up it code
instead for now. Remove spurious blank line, use C89 definition, wrap long line. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'lib/libc/sys')
-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