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 /lib/metadata/lv.h | |
parent | 2f321615f22a9fef2eaa0258d62c49212f52a8b0 (diff) | |
download | lvm2-aec211541073d107668cfa404970589c7dced120.tar.gz lvm2-aec211541073d107668cfa404970589c7dced120.tar.xz lvm2-aec211541073d107668cfa404970589c7dced120.zip |
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 'lib/metadata/lv.h')
-rw-r--r-- | lib/metadata/lv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/lv.h b/lib/metadata/lv.h index bff36d28..50afa281 100644 --- a/lib/metadata/lv.h +++ b/lib/metadata/lv.h @@ -23,7 +23,7 @@ struct replicator_device; struct logical_volume { union lvid lvid; - char *name; + const char *name; struct volume_group *vg; |