mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: warning: declaration of 'remove' shadows a global declaration
Don't shadow stdio.h declaration.
This commit is contained in:
parent
678cc4e375
commit
ccdea661fa
@ -1386,11 +1386,11 @@ struct dm_config_tree *dm_config_flatten(struct dm_config_tree *cft)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dm_config_remove_node(struct dm_config_node *parent, struct dm_config_node *remove)
|
int dm_config_remove_node(struct dm_config_node *parent, struct dm_config_node *rem_node)
|
||||||
{
|
{
|
||||||
struct dm_config_node *cn = parent->child, *last = NULL;
|
struct dm_config_node *cn = parent->child, *last = NULL;
|
||||||
while (cn) {
|
while (cn) {
|
||||||
if (cn == remove) {
|
if (cn == rem_node) {
|
||||||
if (last)
|
if (last)
|
||||||
last->sib = cn->sib;
|
last->sib = cn->sib;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user