summaryrefslogtreecommitdiffstats
path: root/source3/utils/regedit_treeview.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-11-13 09:12:56 +0100
committerJeremy Allison <jra@samba.org>2014-11-25 07:25:45 +0100
commit5d070d9f1844ebb120cf254c57f45c3aba9618ef (patch)
treed6ddc72fa291baa4bf37fc640ca4f37af0e26fef /source3/utils/regedit_treeview.c
parent002a1c57a962779372643abf0857e820541c1b0d (diff)
downloadsamba-5d070d9f1844ebb120cf254c57f45c3aba9618ef.tar.gz
samba-5d070d9f1844ebb120cf254c57f45c3aba9618ef.tar.xz
samba-5d070d9f1844ebb120cf254c57f45c3aba9618ef.zip
s3:utils: rename variables in regedit_*.c to fix shadow warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/regedit_treeview.c')
-rw-r--r--source3/utils/regedit_treeview.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/regedit_treeview.c b/source3/utils/regedit_treeview.c
index 4c68feab8b..ece15e5239 100644
--- a/source3/utils/regedit_treeview.c
+++ b/source3/utils/regedit_treeview.c
@@ -481,11 +481,11 @@ void tree_view_driver(struct tree_view *view, int c)
multilist_driver(view->list, c);
}
-void tree_view_set_selected(struct tree_view *view, bool select)
+void tree_view_set_selected(struct tree_view *view, bool reverse)
{
attr_t attr = A_NORMAL;
- if (select) {
+ if (reverse) {
attr = A_REVERSE;
}
mvwchgat(view->window, 0, HEADING_X, 3, attr, 0, NULL);
@@ -649,7 +649,7 @@ void tree_view_resize(struct tree_view *view, int nlines, int ncols,
const char **tree_node_get_path(TALLOC_CTX *ctx, struct tree_node *node)
{
const char **array;
- size_t nitems, index;
+ size_t nitems, idx;
struct tree_node *p;
for (nitems = 0, p = node; !tree_node_is_root(p); p = p->parent) {
@@ -661,11 +661,11 @@ const char **tree_node_get_path(TALLOC_CTX *ctx, struct tree_node *node)
return NULL;
}
- for (index = nitems - 1, p = node;
+ for (idx = nitems - 1, p = node;
!tree_node_is_root(p);
- p = p->parent, --index) {
- array[index] = talloc_strdup(array, p->name);
- if (array[index] == NULL) {
+ p = p->parent, --idx) {
+ array[idx] = talloc_strdup(array, p->name);
+ if (array[idx] == NULL) {
talloc_free(discard_const(array));
return NULL;
}