summaryrefslogtreecommitdiffstats
path: root/libsmartcols
diff options
context:
space:
mode:
authorSami Kerola2018-12-10 21:30:59 +0100
committerSami Kerola2018-12-10 21:31:48 +0100
commit539e96b14106d4245589fdf7963c68530a3026a7 (patch)
tree1c985181061699c73622e0f5b26fc556db520df7 /libsmartcols
parentlsblk: fix null pointer dereferences (diff)
downloadkernel-qcow2-util-linux-539e96b14106d4245589fdf7963c68530a3026a7.tar.gz
kernel-qcow2-util-linux-539e96b14106d4245589fdf7963c68530a3026a7.tar.xz
kernel-qcow2-util-linux-539e96b14106d4245589fdf7963c68530a3026a7.zip
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>
Diffstat (limited to 'libsmartcols')
-rw-r--r--libsmartcols/src/grouping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsmartcols/src/grouping.c b/libsmartcols/src/grouping.c
index 63ed6c4b2..7477946f6 100644
--- a/libsmartcols/src/grouping.c
+++ b/libsmartcols/src/grouping.c
@@ -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);
}
}