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
This commit is contained in:
parent
819c47ae81
commit
338a93135a
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user