summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/chunk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-23 19:52:32 +0000
committerphk <phk@FreeBSD.org>2002-10-23 19:52:32 +0000
commit3c688df1144b5bdaff8d7a1bb0a2b070aeb58570 (patch)
tree8f96ba2125f5c49c01733b91085df28bc416b157 /lib/libdisk/chunk.c
parenta422fc77aed8e1bd796a01b2de09138e90fabad5 (diff)
downloadFreeBSD-src-3c688df1144b5bdaff8d7a1bb0a2b070aeb58570.zip
FreeBSD-src-3c688df1144b5bdaff8d7a1bb0a2b070aeb58570.tar.gz
Untangle #ifdefs in the write-end of things by giving each arch its
own file and own copy of WriteDisk() to do things in. This should have happened years ago, instead of adding #ifdefs all over the place.
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r--lib/libdisk/chunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index e72ad63..2b4854d 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -124,7 +124,7 @@ Clone_Chunk(const struct chunk *c1)
static int
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)
+ chunk_e type, int subtype, u_long flags, const char *sname __unused)
{
struct chunk *ct,*cs;
@@ -322,7 +322,7 @@ ShowChunkFlags(struct chunk *c)
return ret;
}
-void
+static void
Print_Chunk(struct chunk *c1,int offset)
{
int i;
OpenPOWER on IntegriCloud