diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:47:28 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-02-18 14:47:28 +0000 |
commit | aec211541073d107668cfa404970589c7dced120 (patch) | |
tree | a9553044dd34e8ad676338c18659affb2f1fe7f2 /tools/vgcreate.c | |
parent | 2f321615f22a9fef2eaa0258d62c49212f52a8b0 (diff) | |
download | lvm2-aec211541073d107668cfa404970589c7dced120.tar.gz |
Const fixing
Fixing some const warnings - with API change in:
int vg_extend(struct volume_group *vg, int pv_count, const char *const *pv_names,
Change is needed - as lvm2api expects const behaviour here.
So vg_extend() is doing local strdup for unescaping.
skip_dev_dir return const char* from const char* vg_name.
Rest of the patch is cleanup of related warnings.
Also using dm_report_filed_string() API change to simplify
casting in _string_disp and _lvname_disp.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index 49574f335..62b5ac7bd 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -74,7 +74,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) } /* attach the pv's */ - if (!vg_extend(vg, argc, argv, &pp)) + if (!vg_extend(vg, argc, (const char* const*)argv, &pp)) goto_bad; if (vp_new.max_lv != vg->max_lv) |