summaryrefslogtreecommitdiff
path: root/sys/dev/isa/fd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 17:22:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 17:22:41 +0000
commit0eeef6a38a80e97df06ed063fee2a2aec84cc2b0 (patch)
tree693d63b456db38cbae62a9dac11251c9ac732554 /sys/dev/isa/fd.c
parent53ee61e57b337a193a3a6f651ff7239129ae298c (diff)
whoops, correct d_nsectors
Diffstat (limited to 'sys/dev/isa/fd.c')
-rw-r--r--sys/dev/isa/fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index ae2a3156009..8f90d35b399 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.31 1996/12/05 17:16:05 deraadt Exp $ */
+/* $OpenBSD: fd.c,v 1.32 1996/12/05 17:22:40 deraadt Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -970,7 +970,7 @@ fdioctl(dev, cmd, addr, flag, p)
lp->d_secsize = 128 << fd->sc_type->secsize;
lp->d_secpercyl = fd->sc_type->seccyl;
lp->d_ntracks = fd->sc_type->heads;
- lp->d_nsectors = fd->sc_type->seccyl;
+ lp->d_nsectors = fd->sc_type->sectrac;
lp->d_ncylinders = fd->sc_type->tracks;
strncpy(lp->d_typename, "floppy disk", 16);