diff options
author | phk <phk@FreeBSD.org> | 2002-10-22 10:51:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-22 10:51:58 +0000 |
commit | 1bc5baf5c9b8f1c322eb6e8d3f27f4eb15cdb39b (patch) | |
tree | 26f0bd91bd85cfd83899ea119406ae967380a962 /lib/libdisk/create_chunk.c | |
parent | 92fdfeb04440d61d1ec34a35c90db06ca8c4ef66 (diff) | |
download | FreeBSD-src-1bc5baf5c9b8f1c322eb6e8d3f27f4eb15cdb39b.zip FreeBSD-src-1bc5baf5c9b8f1c322eb6e8d3f27f4eb15cdb39b.tar.gz |
Avoid a lot of #ifdef PC98 code by giving a couple of the Chunk functions
an extra argument for all archs.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r-- | lib/libdisk/create_chunk.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index dbc5b58..5efe0d9 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -176,11 +176,7 @@ Fixup_Names(struct disk *d) } int -#ifdef PC98 Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subtype, u_long flags, const char *sname) -#else -Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subtype, u_long flags) -#endif { int i; u_long l; @@ -205,11 +201,7 @@ Create_Chunk(struct disk *d, u_long offset, u_long size, chunk_e type, int subty size -= l; } -#ifdef PC98 i = Add_Chunk(d, offset, size, "X", type, subtype, flags, sname); -#else - i = Add_Chunk(d, offset, size, "X", type, subtype, flags); -#endif Fixup_Names(d); return i; } @@ -231,11 +223,7 @@ Create_Chunk_DWIM(struct disk *d, const struct chunk *parent , u_long size, chun } return 0; found: -#ifdef PC98 i = Add_Chunk(d, offset, size, "X", type, subtype, flags, "-"); -#else - i = Add_Chunk(d, offset, size, "X", type, subtype, flags); -#endif if (i) return 0; Fixup_Names(d); |