mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-06 21:49:28 +03:00
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).
This commit is contained in:
@ -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.");
|
||||
|
Reference in New Issue
Block a user