Skip to content

Commit aa7710e

Browse files
pcloudsgitster
authored andcommitted
attr.c: rename arg name attr_nr to avoid shadowing the global one
Helped-by: Junio C Hamano <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c2e8e4b commit aa7710e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

attr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,21 +681,21 @@ static int fill(const char *path, int pathlen, int basename_offset,
681681
return rem;
682682
}
683683

684-
static int macroexpand_one(int attr_nr, int rem)
684+
static int macroexpand_one(int nr, int rem)
685685
{
686686
struct attr_stack *stk;
687687
struct match_attr *a = NULL;
688688
int i;
689689

690-
if (check_all_attr[attr_nr].value != ATTR__TRUE)
690+
if (check_all_attr[nr].value != ATTR__TRUE)
691691
return rem;
692692

693693
for (stk = attr_stack; !a && stk; stk = stk->prev)
694694
for (i = stk->num_matches - 1; !a && 0 <= i; i--) {
695695
struct match_attr *ma = stk->attrs[i];
696696
if (!ma->is_macro)
697697
continue;
698-
if (ma->u.attr->attr_nr == attr_nr)
698+
if (ma->u.attr->attr_nr == nr)
699699
a = ma;
700700
}
701701

0 commit comments

Comments
 (0)