diff options
author | 2011-07-08 20:10:34 +0000 | |
---|---|---|
committer | 2011-07-08 20:10:34 +0000 | |
commit | 231c681fd5cbfbd56dea64fda1de4bf7eba6faee (patch) | |
tree | cd5e3146f987043d5288598cd4a9a1a8ee57c0b9 | |
parent | surround splice structure with __BSD_VISIBLE (the right one, noticed by (diff) | |
download | wireguard-openbsd-231c681fd5cbfbd56dea64fda1de4bf7eba6faee.tar.xz wireguard-openbsd-231c681fd5cbfbd56dea64fda1de4bf7eba6faee.zip |
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@
-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); |