diff options
author | obrien <obrien@FreeBSD.org> | 2001-04-01 11:37:31 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-04-01 11:37:31 +0000 |
commit | 090766603f642fe5391fcb8771bd4b6f72297a56 (patch) | |
tree | 0e5407f8a897ab4ea4cfdddefcd97c29549340e8 /lib/libdisk/create_chunk.c | |
parent | e2cf0ccf627d7b31362cd71ee793831ab901f8c5 (diff) | |
download | FreeBSD-src-090766603f642fe5391fcb8771bd4b6f72297a56.zip FreeBSD-src-090766603f642fe5391fcb8771bd4b6f72297a56.tar.gz |
Try to untangle some of the #ifdef spaghetti.
Also, looking to the future, don't assume all the world is an i386 and all
its disk layout brain damage will be repeated by other platforms. So all
the diking out if we are an Alpha, becomes adding in if we are an i386.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 0fb2c78..59a83dc 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -157,7 +157,7 @@ Fixup_Names(struct disk *d) continue; if (strcmp(c2->name,"X")) continue; -#ifndef __alpha__ +#ifdef __i386__ c2->oname = malloc(12); if(!c2->oname) barfout(1,"malloc failed"); for(j=1;j<=NDOSPART;j++) { @@ -177,7 +177,7 @@ Fixup_Names(struct disk *d) #else free(c2->name); c2->name = strdup(c1->name); -#endif +#endif /*__i386__*/ } for(c2 = c1->part; c2 ; c2 = c2->next) { if (c2->type == freebsd) { @@ -219,7 +219,7 @@ Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subty offset += d->bios_sect; size -= d->bios_sect; } -#endif +#endif /* PC98 */ /* Always end on cylinder boundary */ l = (offset+size) % (d->bios_sect * d->bios_hd); |