mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: add DM_LIST_HEAD_INIT macro
Support to initialize dm_list struct members.
This commit is contained in:
parent
a98ea95c4d
commit
482e572e5d
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.91 -
|
Version 1.02.91 -
|
||||||
====================================
|
====================================
|
||||||
|
Add DM_LIST_HEAD_INIT macro to libdevmapper.h
|
||||||
Fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
|
Fix dm_is_dm_major to not issue error about missing /proc lines for dm module.
|
||||||
|
|
||||||
Version 1.02.90 - 1st September 2014
|
Version 1.02.90 - 1st September 2014
|
||||||
|
@ -1200,7 +1200,8 @@ struct dm_str_list {
|
|||||||
* Initialise a list before use.
|
* Initialise a list before use.
|
||||||
* The list head's next and previous pointers point back to itself.
|
* The list head's next and previous pointers point back to itself.
|
||||||
*/
|
*/
|
||||||
#define DM_LIST_INIT(name) struct dm_list name = { &(name), &(name) }
|
#define DM_LIST_HEAD_INIT(name) { &(name), &(name) }
|
||||||
|
#define DM_LIST_INIT(name) struct dm_list name = DM_LIST_HEAD_INIT(name)
|
||||||
void dm_list_init(struct dm_list *head);
|
void dm_list_init(struct dm_list *head);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user