diff options
author | phk <phk@FreeBSD.org> | 2002-10-22 11:55:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-22 11:55:27 +0000 |
commit | aa430888dc37989ae244d729f160fc2f66268d7f (patch) | |
tree | 7056f347140ee8087e5f8f7ba537a2566fa7ff3d /lib/libdisk/change.c | |
parent | ae34f90c7eeca2491ccc3631291b880b1befdde2 (diff) | |
download | FreeBSD-src-aa430888dc37989ae244d729f160fc2f66268d7f.zip FreeBSD-src-aa430888dc37989ae244d729f160fc2f66268d7f.tar.gz |
Live with it: I had hoped to find a neat way to deal with all the magic
numbers, but so far havn't come up with anything: Add an #ifdef PC98.
Diffstat (limited to 'lib/libdisk/change.c')
-rw-r--r-- | lib/libdisk/change.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index 816f31f..7788534 100644 --- a/lib/libdisk/change.c +++ b/lib/libdisk/change.c @@ -81,6 +81,13 @@ void All_FreeBSD(struct disk *d, int force_all) { struct chunk *c; + int type; + +#ifdef PC98 + type = 0x494; +#else + type = 0xa5; +#endif again: for (c = d->chunks->part; c; c = c->next) @@ -91,10 +98,10 @@ All_FreeBSD(struct disk *d, int force_all) c = d->chunks; if (force_all) { Sanitize_Bios_Geom(d); - Create_Chunk(d, c->offset, c->size, freebsd, 0x494, + Create_Chunk(d, c->offset, c->size, freebsd, type, CHUNK_FORCE_ALL, "FreeBSD"); } else { - Create_Chunk(d, c->offset, c->size, freebsd, 0x494, 0, + Create_Chunk(d, c->offset, c->size, freebsd, type, 0, "FreeBSD"); } } |