summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-12-22 03:20:16 +0000
committerjmallett <jmallett@FreeBSD.org>2002-12-22 03:20:16 +0000
commit785e008f9bc1e0702b1e499409f56e5b6ab03769 (patch)
tree4307d04f328e5b435cfba444e9d14ba265dbb97a /lib/libc
parent3c0d125aa8465e3a307a05b3437bce2f4437aa17 (diff)
downloadFreeBSD-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
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mmap.c4
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));
}
OpenPOWER on IntegriCloud