summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/chunk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-22 10:51:58 +0000
committerphk <phk@FreeBSD.org>2002-10-22 10:51:58 +0000
commit1bc5baf5c9b8f1c322eb6e8d3f27f4eb15cdb39b (patch)
tree26f0bd91bd85cfd83899ea119406ae967380a962 /lib/libdisk/chunk.c
parent92fdfeb04440d61d1ec34a35c90db06ca8c4ef66 (diff)
downloadFreeBSD-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/chunk.c')
-rw-r--r--lib/libdisk/chunk.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index 8434f6b..e72ad63 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -123,13 +123,8 @@ Clone_Chunk(const struct chunk *c1)
}
static int
-#ifdef PC98
Insert_Chunk(struct chunk *c2, u_long offset, u_long size, const char *name,
chunk_e type, int subtype, u_long flags, const char *sname)
-#else
-Insert_Chunk(struct chunk *c2, u_long offset, u_long size, const char *name,
- chunk_e type, int subtype, u_long flags)
-#endif
{
struct chunk *ct,*cs;
@@ -218,13 +213,8 @@ Insert_Chunk(struct chunk *c2, u_long offset, u_long size, const char *name,
}
int
-#ifdef PC98
Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
chunk_e type, int subtype, u_long flags, const char *sname)
-#else
-Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
- chunk_e type, int subtype, u_long flags)
-#endif
{
struct chunk *c1,*c2,ct;
u_long end = offset + size - 1;
@@ -243,10 +233,8 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
c2->offset = c1->offset = offset;
c2->size = c1->size = size;
c2->end = c1->end = end;
-#ifdef PC98
c1->sname = strdup(sname);
c2->sname = strdup("-");
-#endif
c1->name = strdup(name);
c2->name = strdup("-");
c1->type = type;
@@ -313,13 +301,8 @@ Add_Chunk(struct disk *d, long offset, u_long size, const char *name,
size -= offset;
doit:
-#ifdef PC98
return Insert_Chunk(c2, offset, size, name,
type, subtype, flags, sname);
-#else
- return Insert_Chunk(c2, offset, size, name,
- type, subtype, flags);
-#endif
}
}
return __LINE__;
OpenPOWER on IntegriCloud