Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fdisk Make check if we need int13 extensions for the bo...



details:   https://anonhg.NetBSD.org/src/rev/94d28b83d96f
branches:  trunk
changeset: 472556:94d28b83d96f
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun May 02 12:17:48 1999 +0000

description:
Make check if we need int13 extensions for the bootselector more correct.

diffstat:

 sbin/fdisk/fdisk.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 00dab323e82b -r 94d28b83d96f sbin/fdisk/fdisk.c
--- a/sbin/fdisk/fdisk.c        Sun May 02 12:17:13 1999 +0000
+++ b/sbin/fdisk/fdisk.c        Sun May 02 12:17:48 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdisk.c,v 1.35 1999/04/28 23:27:01 fvdl Exp $ */
+/*     $NetBSD: fdisk.c,v 1.36 1999/05/02 12:17:48 fvdl Exp $ */
 
 /*
  * Mach Operating System
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: fdisk.c,v 1.35 1999/04/28 23:27:01 fvdl Exp $");
+__RCSID("$NetBSD: fdisk.c,v 1.36 1999/05/02 12:17:48 fvdl Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -868,8 +868,8 @@
 done:
        for (i = 0; i < NMBRPART; i++) {
                if (mboot.parts[i].mbrp_typ != 0 &&
-                  (mboot.parts[i].mbrp_start + mboot.parts[i].mbrp_size) >=
-                     (dos_cylinders * dos_heads * dos_sectors)) {
+                  mboot.parts[i].mbrp_start >=
+                    (dos_cylinders * dos_heads * dos_sectors)) {
                        mbs->flags |= BFL_EXTINT13;
                        break;
                }



Home | Main Index | Thread Index | Old Index