diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 00:57:57 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 00:57:57 +0000 |
commit | 975fba8a24263006afbbb4e38dd6bf515bdf4b43 (patch) | |
tree | da30cbbe5e5f3c775029e38108f63aa8b8cd17b7 /sys/ufs/ufs/ufs_readwrite.c | |
parent | 4cc7d69521756e89ce3e5ea28211fda13fc4c9ff (diff) | |
download | FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.zip FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/ufs/ufs/ufs_readwrite.c')
-rw-r--r-- | sys/ufs/ufs/ufs_readwrite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index fd3555a..368608b 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ufs_readwrite.c 8.11 (Berkeley) 5/8/95 - * $Id: ufs_readwrite.c,v 1.55 1999/01/07 16:14:19 bde Exp $ + * $Id: ufs_readwrite.c,v 1.56 1999/01/21 08:29:09 dillon Exp $ */ #define BLKSIZE(a, b, c) blksize(a, b, c) @@ -564,8 +564,8 @@ ffs_getpages(ap) if (firstindex == 0) vp->v_lastr = 0; - if ((obj->behavior != OBJ_RANDOM) && - ((firstindex != 0) && (firstindex <= vp->v_lastr) && + if (((obj->behavior != OBJ_RANDOM) && + (firstindex != 0) && (firstindex <= vp->v_lastr) && ((firstindex + pcount) > vp->v_lastr)) || (obj->behavior == OBJ_SEQUENTIAL)) { struct uio auio; |