summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-14 06:49:05 +0000
committerNeil Brown <neilb@suse.de>2005-06-14 06:49:05 +0000
commitc7654afc29a0f4a7920f134ccc968548b8d0a598 (patch)
treeaef70667b3f5fec7db9527970dd168c1140c3a6f /super0.c
parentfe6729fa8cde33bce8d693e3f082fae688b1ff09 (diff)
downloadmdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.tar.gz
mdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.tar.xz
mdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.zip
Fix compiling of mdassemble
(again). Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 303ed88..ada598a 100644
--- a/super0.c
+++ b/super0.c
@@ -52,6 +52,7 @@ static unsigned long calc_sb0_csum(mdp_super_t *super)
return newcsum;
}
+#ifndef MDASSEMBLE
static void examine_super0(void *sbv)
{
mdp_super_t *sb = sbv;
@@ -170,7 +171,7 @@ static void brief_detail_super0(void *sbv)
else
printf("%08x", sb->set_uuid0);
}
-
+#endif
static void uuid_from_super0(int uuid[4], void * sbv)
{
mdp_super_t *super = sbv;
@@ -743,10 +744,12 @@ int write_bitmap0(struct supertype *st, int fd, void *sbv)
struct superswitch super0 = {
+#ifndef MDASSEMBLE
.examine_super = examine_super0,
.brief_examine_super = brief_examine_super0,
.detail_super = detail_super0,
.brief_detail_super = brief_detail_super0,
+#endif
.uuid_from_super = uuid_from_super0,
.getinfo_super = getinfo_super0,
.update_super = update_super0,