summaryrefslogtreecommitdiff
path: root/liblvm/lvm_misc.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-05-29 09:41:03 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2014-06-17 16:27:20 +0200
commit5abdb52fdc66316d3e7d54085d4e79160024b95e (patch)
tree462e96d77d2c72a54470c49ec379aedcbd455f62 /liblvm/lvm_misc.c
parentfe952e735ae260849a9a9c04f38bbb08f8e6c22b (diff)
downloadlvm2-5abdb52fdc66316d3e7d54085d4e79160024b95e.tar.gz
report: select: refactor: move str_list to libdm
The list of strings is used quite frequently and we'd like to reuse this simple structure for report selection support too. Make it part of libdevmapper for general reuse throughout the code. This also simplifies the LVM code a bit since we don't need to include and manage lvm-types.h anymore (the string list was the only structure defined there).
Diffstat (limited to 'liblvm/lvm_misc.c')
-rw-r--r--liblvm/lvm_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblvm/lvm_misc.c b/liblvm/lvm_misc.c
index d9b432387..ff26cdfb2 100644
--- a/liblvm/lvm_misc.c
+++ b/liblvm/lvm_misc.c
@@ -22,7 +22,7 @@ struct dm_list *tag_list_copy(struct dm_pool *p, struct dm_list *tag_list)
{
struct dm_list *list;
lvm_str_list_t *lsl;
- struct str_list *sl;
+ struct dm_str_list *sl;
if (!(list = dm_pool_zalloc(p, sizeof(*list)))) {
log_errno(ENOMEM, "Memory allocation fail for dm_list.");