master - cleanup: warning: declaration of 'remove' shadows a global declaration
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ccdea661fa2aab07fbd73bfd7f8fe5273acd71c0 Commit: ccdea661fa2aab07fbd73bfd7f8fe5273acd71c0 Parent: 678cc4e3752ec74c7647a23eb3131439c37b3328 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Nov 22 20:14:42 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Nov 23 00:49:04 2014 +0100
cleanup: warning: declaration of 'remove' shadows a global declaration
Don't shadow stdio.h declaration.
--- libdm/libdm-config.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdm-config.c +2 -2
@@ -1386,11 +1386,11 @@ struct dm_config_tree *dm_config_flatten(struct dm_config_tree *cft)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 ;while (cn) { -if (cn == remove) { +if (cn == rem_node) {if (last) last->sib = cn->sib;else