diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-02 00:08:18 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-11-02 00:08:18 +0000 |
commit | 10969930464b06a8261f0bed5677855450bd5e46 (patch) | |
tree | d2fa88ce12193f05057a59815fbe32345ea21162 /sys/ufs/ext2fs | |
parent | 76809e136c7557e5b308e6d5cebe1f037fc3f73b (diff) |
No need to cast constants or simple variables to (daddr_t). Use
(u_int64_t) instead of (daddr_t) when casting a variable in an
expression passed to DL_SETDSIZE().
Change a variable counting open files from daddr_t to int64_t.
ok deraadt@ with the tweak to fix that pesky expression.
Diffstat (limited to 'sys/ufs/ext2fs')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_subr.c b/sys/ufs/ext2fs/ext2fs_subr.c index 6374d40dee3..c0f3ba18fbf 100644 --- a/sys/ufs/ext2fs/ext2fs_subr.c +++ b/sys/ufs/ext2fs/ext2fs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_subr.c,v 1.29 2013/11/01 17:36:19 krw Exp $ */ +/* $OpenBSD: ext2fs_subr.c,v 1.30 2013/11/02 00:08:17 krw Exp $ */ /* $NetBSD: ext2fs_subr.c,v 1.1 1997/06/11 09:34:03 bouyer Exp $ */ /* @@ -115,7 +115,7 @@ ext2fs_checkoverlap(struct buf *bp, struct inode *ip) if (ep == bp || (ep->b_flags & B_INVAL) || ep->b_vp == NULLVP) continue; - if (VOP_BMAP(ep->b_vp, (daddr_t)0, &vp, NULL, NULL)) + if (VOP_BMAP(ep->b_vp, 0, &vp, NULL, NULL)) continue; if (vp != ip->i_devvp) continue; |