diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-08 20:10:35 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-07-08 20:10:35 +0000 |
commit | 3a45c2de7196019fe9128fe728308e63a4a2f903 (patch) | |
tree | c42e40920892f138bf8220a7323f7e083f8bd072 /sys/dev/vnd.c | |
parent | 70ee45fe0aa708c07db10249bb1f7a560c05d2c8 (diff) |
Ack, my last change used size_t for file offsets, but size_t is only
32-bit on 32-bit architectures; we need off_t to support >4GB vnd(4)
images.
Discovered by, tested, and ok bluhm@
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r-- | sys/dev/vnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 4babdd5a018..b8b39036fcf 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.145 2011/07/08 05:27:46 matthew Exp $ */ +/* $OpenBSD: vnd.c,v 1.146 2011/07/08 20:10:34 matthew Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -268,7 +268,7 @@ vndstrategy(struct buf *bp) int unit = DISKUNIT(bp->b_dev); struct vnd_softc *sc; struct partition *p; - size_t off; + off_t off; int s; DNPRINTF(VDB_FOLLOW, "vndstrategy(%p): unit %d\n", bp, unit); |