diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-12-22 03:20:16 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-12-22 03:20:16 +0000 |
commit | 785e008f9bc1e0702b1e499409f56e5b6ab03769 (patch) | |
tree | 4307d04f328e5b435cfba444e9d14ba265dbb97a | |
parent | 3c0d125aa8465e3a307a05b3437bce2f4437aa17 (diff) | |
download | FreeBSD-src-785e008f9bc1e0702b1e499409f56e5b6ab03769.zip FreeBSD-src-785e008f9bc1e0702b1e499409f56e5b6ab03769.tar.gz |
Fix style (no space after return, twice-too-big continuation) and
cast (casting long to a void pointer, rather than intptr_t to a
void pointer) bogons.
Reviewed by: bde
-rw-r--r-- | lib/libc/sys/mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index 4efce17..309d2bc 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -56,6 +56,6 @@ mmap(addr, len, prot, flags, fd, offset) off_t offset; { - return((void *)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, - fd, 0, offset)); + return ((void *)(intptr_t)__syscall((quad_t)SYS_mmap, addr, len, prot, + flags, fd, 0, offset)); } |