summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/vnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 932130f206c..e74b9a74676 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.73 2007/04/29 18:59:37 krw Exp $ */
+/* $OpenBSD: vnd.c,v 1.74 2007/05/12 12:19:23 krw Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -914,7 +914,7 @@ vndioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
vnd->sc_dk.dk_cpulabel);
if (error == 0) {
if (cmd == DIOCWDINFO)
- error = writedisklabel(DISKLABELDEV(dev),
+ error = writedisklabel(VNDLABELDEV(dev),
vndstrategy, vnd->sc_dk.dk_label,
vnd->sc_dk.dk_cpulabel);
}