Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2009 12:31:59 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190027 - head/sbin/fdisk_pc98
Message-ID:  <200903191231.n2JCVxsN060796@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nyan
Date: Thu Mar 19 12:31:59 2009
New Revision: 190027
URL: http://svn.freebsd.org/changeset/base/190027

Log:
  Use the common PC98_SID_ACTIVE define instead of a local define.

Modified:
  head/sbin/fdisk_pc98/fdisk.c

Modified: head/sbin/fdisk_pc98/fdisk.c
==============================================================================
--- head/sbin/fdisk_pc98/fdisk.c	Thu Mar 19 10:42:07 2009	(r190026)
+++ head/sbin/fdisk_pc98/fdisk.c	Thu Mar 19 12:31:59 2009	(r190027)
@@ -84,8 +84,6 @@ struct mboot {
 static struct mboot mboot;
 static int fd;
 
-#define ACTIVE 0x80
-
 static uint dos_cyls;
 static uint dos_heads;
 static uint dos_sectors;
@@ -520,7 +518,7 @@ change_active(int which)
 
 	active = -1;
 	for (i = 0; i < NDOSPART; i++) {
-		if ((partp[i].dp_sid & ACTIVE) == 0)
+		if ((partp[i].dp_sid & PC98_SID_ACTIVE) == 0)
 			continue;
 		printf("Partition %d is marked active\n", i + 1);
 		if (active == -1)
@@ -545,7 +543,7 @@ setactive:
 		active = new;
 	} while (!ok("Are you happy with this choice"));
 	if (active > 0 && active <= 8)
-		partp[active-1].dp_sid |= ACTIVE;
+		partp[active-1].dp_sid |= PC98_SID_ACTIVE;
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903191231.n2JCVxsN060796>