diff options
author | 2008-06-29 20:05:22 +0000 | |
---|---|---|
committer | 2008-06-29 20:05:22 +0000 | |
commit | f2af9bfec9911dddff436f1152c84f7458ad8fa8 (patch) | |
tree | cbe59d340e07ac90738e5643fd71c0f8adcf6710 /sys/dev/vnd.c | |
parent | this stupid per-arch SIZEOF_BPF_HDR define is really really stupid, but (diff) | |
download | wireguard-openbsd-f2af9bfec9911dddff436f1152c84f7458ad8fa8.tar.xz wireguard-openbsd-f2af9bfec9911dddff436f1152c84f7458ad8fa8.zip |
Use DEV_BSIZE (defined as 512) instead of 512 when initializing the
disklabel's d_secsize.
ok millert@ marco@
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 c80ba5c5199..8d3d79cfadc 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.85 2008/03/24 01:16:58 krw Exp $ */ +/* $OpenBSD: vnd.c,v 1.86 2008/06/29 20:05:22 krw Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -305,7 +305,7 @@ vndgetdisklabel(dev_t dev, struct vnd_softc *sc, struct disklabel *lp, bzero(lp, sizeof(struct disklabel)); - lp->d_secsize = 512; + lp->d_secsize = DEV_BSIZE; lp->d_ntracks = 1; lp->d_nsectors = 100; lp->d_ncylinders = sc->sc_size / 100; |