From ccdea661fa2aab07fbd73bfd7f8fe5273acd71c0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 22 Nov 2014 20:14:42 +0100 Subject: [PATCH] cleanup: warning: declaration of 'remove' shadows a global declaration Don't shadow stdio.h declaration. --- libdm/libdm-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 91aa970d7..1ec604f34 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -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