Date: Thu, 26 Jun 2014 08:27:01 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r267900 - stable/10/lib/libc/sys Message-ID: <201406260827.s5Q8R16h050932@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); + } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406260827.s5Q8R16h050932>