libsmartcols: fix variable shadowing

libsmartcols/src/grouping.c:115:26: warning: declaration of ‘ln’ shadows a
				    previous local [-Wshadow]
libsmartcols/src/grouping.c:108:24: note: shadowed declaration is here

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2018-12-10 20:30:59 +00:00
parent e361253e88
commit 539e96b141
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
1 changed files with 2 additions and 2 deletions

View File

@ -112,9 +112,9 @@ void scols_groups_fix_members_order(struct libscols_table *tb)
scols_reset_iter(&itr, SCOLS_ITER_FORWARD);
while (scols_table_next_group(tb, &itr, &gr) == 0) {
while (!list_empty(&gr->gr_members)) {
struct libscols_line *ln = list_entry(gr->gr_members.next,
struct libscols_line *line = list_entry(gr->gr_members.next,
struct libscols_line, ln_groups);
list_del_init(&ln->ln_groups);
list_del_init(&line->ln_groups);
}
}