summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/fd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-04-27 22:20:02 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-04-27 22:20:02 +0000
commit2003a7dedc7d0d8ad0d735b5ed8a37beea46752a (patch)
tree7e01385bded98173897c1905c11f1dad034ddff9 /sys/arch/sparc/dev/fd.c
parent548497f91bdfef9ed0252a76deda907bda232a77 (diff)
Even floppies should use DISKLABELDEV() on the dev_t parameter to
readdisklabel/writedisklabel. ok deraadt@ weingart@ conceptual ok drahn@
Diffstat (limited to 'sys/arch/sparc/dev/fd.c')
-rw-r--r--sys/arch/sparc/dev/fd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 257d83fe0a2..c8f47e039a4 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.47 2007/02/15 00:53:26 krw Exp $ */
+/* $OpenBSD: fd.c,v 1.48 2007/04/27 22:20:01 krw Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -1791,7 +1791,7 @@ fdioctl(dev, cmd, addr, flag, p)
if (error)
return (error);
- error = writedisklabel(dev, fdstrategy,
+ error = writedisklabel(DISKLABELDEV(dev), fdstrategy,
fd->sc_dk.dk_label,
fd->sc_dk.dk_cpulabel);
return (error);
@@ -1983,7 +1983,7 @@ fdgetdisklabel(dev)
/*
* Call the generic disklabel extraction routine.
*/
- errstring = readdisklabel(dev, fdstrategy, lp, clp, 0);
+ errstring = readdisklabel(DISKLABELDEV(dev), fdstrategy, lp, clp, 0);
if (errstring) {
/*printf("%s: %s\n", fd->sc_dv.dv_xname, errstring);*/
}