summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-02 05:30:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-02 05:30:06 +0000
commitf1cc88b089a381553c58482629ac7c51f5b23d0c (patch)
tree73073c6907d974dd39d9fe403704a065a0e5622b
parentb5fabc909dac74eda8c467361475afa301e4df99 (diff)
fix bios geometry calculation
-rw-r--r--sbin/fdisk/fdisk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 47004eef7ae..08456cce35e 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.12 1997/01/31 11:59:05 deraadt Exp $ */
+/* $OpenBSD: fdisk.c,v 1.13 1997/04/02 05:30:05 mickey Exp $ */
/* $NetBSD: fdisk.c,v 1.11 1995/10/04 23:11:19 ghudson Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fdisk.c,v 1.12 1997/01/31 11:59:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: fdisk.c,v 1.13 1997/04/02 05:30:05 mickey Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -400,11 +400,11 @@ intuit_translated_geometry()
break;
}
}
- if (heads != -1)
+ if (heads > 0)
break;
}
- if (heads == -1)
+ if (heads <= 0)
return;
/* Now figure out the number of sectors from a single mapping. */