Define an auto variable `bn' as off_t instead of int since it is finally

converted to byte offset.
This commit is contained in:
enami 2000-09-12 08:03:24 +00:00
parent fd779f8fc8
commit 9466b8d07e

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnd.c,v 1.67 2000/08/20 11:51:52 pk Exp $ */
/* $NetBSD: vnd.c,v 1.68 2000/09/12 08:03:24 enami Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -314,7 +314,8 @@ vndstrategy(bp)
int unit = vndunit(bp->b_dev);
struct vnd_softc *vnd = &vnd_softc[unit];
struct vndxfer *vnx;
int s, bn, bsize, resid;
int s, bsize, resid;
off_t bn;
caddr_t addr;
int sz, flags, error, wlabel;
struct disklabel *lp;
@ -428,8 +429,8 @@ vndstrategy(bp)
sz = resid;
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndstrategy: vp %p/%p bn 0x%x/0x%x sz 0x%x\n",
vnd->sc_vp, vp, bn, nbn, sz);
printf("vndstrategy: vp %p/%p bn 0x%qx/0x%x sz 0x%x\n",
vnd->sc_vp, vp, (long long)bn, nbn, sz);
#endif
s = splbio();