summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-06 11:23:02 +0000
committerderaadt <deraadt@openbsd.org>1996-12-06 11:23:02 +0000
commit97ee5a3474cfa0dd82c7b79aeb2d2201d84da107 (patch)
tree75f5d55c99dea3ba0b95c1ea9ac5e6f295019710
parentmake other floppy nodes (diff)
downloadwireguard-openbsd-97ee5a3474cfa0dd82c7b79aeb2d2201d84da107.tar.xz
wireguard-openbsd-97ee5a3474cfa0dd82c7b79aeb2d2201d84da107.zip
repair max sectors
-rw-r--r--sys/arch/sparc/dev/fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 911ab1dcdfd..c9b93bac0a2 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.12 1996/12/05 17:16:59 deraadt Exp $ */
+/* $OpenBSD: fd.c,v 1.13 1996/12/06 11:23:02 deraadt Exp $ */
/* $NetBSD: fd.c,v 1.33.4.1 1996/06/12 20:52:25 pk Exp $ */
/*-
@@ -1649,6 +1649,7 @@ fdgetdisklabel(dev)
lp->d_type = DTYPE_FLOPPY;
strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname));
lp->d_rpm = 300; /* XXX like it matters... */
+ lp->d_secperunit = fd->sc_type->size;
lp->d_interleave = 1;
lp->d_flags = D_REMOVABLE;
@@ -1664,7 +1665,7 @@ fdgetdisklabel(dev)
/*
* Call the generic disklabel extraction routine.
*/
- (void) readdisklabel(dev, fdstrategy, lp, clp);
+ errstring = readdisklabel(dev, fdstrategy, lp, clp);
if (errstring) {
printf("%s: %s\n", fd->sc_dv.dv_xname, errstring);
return;