Date: Thu, 19 Jun 2014 04:55:01 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267629 - head/lib/libc/sys Message-ID: <201406190455.s5J4t1f7085422@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Jun 19 04:55:00 2014 New Revision: 267629 URL: http://svnweb.freebsd.org/changeset/base/267629 Log: 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 Modified: head/lib/libc/sys/mmap.c Modified: head/lib/libc/sys/mmap.c ============================================================================== --- head/lib/libc/sys/mmap.c Thu Jun 19 03:59:52 2014 (r267628) +++ head/lib/libc/sys/mmap.c Thu Jun 19 04:55:00 2014 (r267629) @@ -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)); + } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406190455.s5J4t1f7085422>