From 374ec39bb6a22bafde2752cfbaf40d1e809d6adb Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 22 Oct 2002 11:55:27 +0000 Subject: [PATCH] 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. --- lib/libdisk/change.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/libdisk/change.c b/lib/libdisk/change.c index 816f31f9780..77885342ccd 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"); } }