summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
committerbde <bde@FreeBSD.org>1999-08-24 00:56:50 +0000
commitfaf95163e9f85fe6efd41c7b0a56672c11a621a2 (patch)
tree2d3b666b5cac091c67205d14119b379e2b7a16f0 /sys/kern/vfs_bio.c
parentc832c03c3c4b357f9ff6827351df1e89d60a083c (diff)
downloadFreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.zip
FreeBSD-src-faf95163e9f85fe6efd41c7b0a56672c11a621a2.tar.gz
Cast pointers to uintptr_t instead of casting them to u_long, and/or vice
versa. Cosmetic.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 83a55b9..f23db16 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.224 1999/07/26 06:25:16 alc Exp $
+ * $Id: vfs_bio.c,v 1.225 1999/08/08 18:42:48 phk Exp $
*/
/*
@@ -2972,10 +2972,11 @@ vfs_bio_clrbuf(struct buf *bp) {
}
ea = sa = bp->b_data;
for(i=0;i<bp->b_npages;i++,sa=ea) {
- int j = ((u_long)sa & PAGE_MASK) / DEV_BSIZE;
+ int j = ((vm_offset_t)sa & PAGE_MASK) / DEV_BSIZE;
ea = (caddr_t)trunc_page((vm_offset_t)sa + PAGE_SIZE);
- ea = (caddr_t)ulmin((u_long)ea,
- (u_long)bp->b_data + bp->b_bufsize);
+ ea = (caddr_t)(vm_offset_t)ulmin(
+ (u_long)(vm_offset_t)ea,
+ (u_long)(vm_offset_t)bp->b_data + bp->b_bufsize);
mask = ((1 << ((ea - sa) / DEV_BSIZE)) - 1) << j;
if ((bp->b_pages[i]->valid & mask) == mask)
continue;
OpenPOWER on IntegriCloud