mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Use the common PC98_SID_ACTIVE define instead of a local define.
This commit is contained in:
parent
cdd14ccabe
commit
162784c969
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190027
@ -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 @@ change_active(int which)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user