]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/cfdisk.c
maint: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Wed, 31 Dec 2014 23:01:21 +0000 (23:01 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Jan 2015 09:08:21 +0000 (10:08 +0100)
commit7ee26cbf025d915c6c15e2fe877ee92846f5992f
tree532aa9b7a7f9807a0249830062ac26abd3d682b6
parent185aa9e5b8c809d4ee73d56256632ed0f739d220
maint: fix shadow declaration

This change fixes all shadow declarations.  The worth while to mention
fix is with libfdisk sun geometry.  It comes from bitops.h cpu_to_be16
macro that further expands from include/bits/byteswap.h that has the
shadowing.

libfdisk/src/sun.c:961:173: warning: declaration of '__v' shadows a previous local [-Wshadow]
libfdisk/src/sun.c:961:69: warning: shadowed declaration is here [-Wshadow]
libfdisk/src/sun.c:961:178: warning: declaration of '__x' shadows a previous local [-Wshadow]
libfdisk/src/sun.c:961:74: warning: shadowed declaration is here [-Wshadow]

That could have caused earlier some unexpected results.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/cfdisk.c
disk-utils/fsck.cramfs.c
libfdisk/src/sun.c
libfdisk/src/table.c
libmount/src/tab_parse.c
libsmartcols/src/table_print.c
login-utils/lslogins.c
misc-utils/findmnt.c
misc-utils/lslocks.c
sys-utils/swapon.c
sys-utils/zramctl.c