summaryrefslogtreecommitdiffstats
path: root/lib/format_text/export.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-05-11 17:58:58 +0000
committerAlasdair Kergon <agk@redhat.com>2006-05-11 17:58:58 +0000
commit898e6f8e419c6d0a86d1a0fd12073fed05f6319c (patch)
treee288c49555a84a19f5db7798bfffaed38fb5eaca /lib/format_text/export.c
parenta54b98e5efc84265c1eb3e1b4165e8863b52f645 (diff)
downloadlvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.gz
lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.xz
lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.zip
Add mirror_library description to example.conf.
More compile-time cleanup.
Diffstat (limited to 'lib/format_text/export.c')
-rw-r--r--lib/format_text/export.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/format_text/export.c b/lib/format_text/export.c
index 670a9ac4..5603698c 100644
--- a/lib/format_text/export.c
+++ b/lib/format_text/export.c
@@ -183,7 +183,8 @@ static int _out_with_comment_file(struct formatter *f, const char *comment,
return 1;
}
-static int _out_with_comment_raw(struct formatter *f, const char *comment,
+static int _out_with_comment_raw(struct formatter *f,
+ const char *comment __attribute((unused)),
const char *fmt, va_list ap)
{
int n;
@@ -281,7 +282,7 @@ int out_text(struct formatter *f, const char *fmt, ...)
}
static int _print_header(struct formatter *f,
- struct volume_group *vg, const char *desc)
+ const char *desc)
{
time_t t;
@@ -665,7 +666,7 @@ static int _text_vg_export(struct formatter *f,
}
#define fail do {stack; goto out;} while(0)
- if (f->header && !_print_header(f, vg, desc))
+ if (f->header && !_print_header(f, desc))
fail;
if (!out_text(f, "%s {", vg->name))
@@ -688,7 +689,7 @@ static int _text_vg_export(struct formatter *f,
if (!out_text(f, "}"))
fail;
- if (!f->header && !_print_header(f, vg, desc))
+ if (!f->header && !_print_header(f, desc))
fail;
#undef fail