aboutsummaryrefslogtreecommitdiffstats
path: root/volumes.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-08-14 16:16:34 -0700
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:41:02 +0200
commit19a2e1f4611eeff9668dacecafb6e51b5ca0f704 (patch)
treea6a821f87083f49c37f8307b454754436a8a4c2c /volumes.c
parent323bf8c5871f94b0623e98d575ccd79d19b14405 (diff)
downloadbtrfs-progs-19a2e1f4611eeff9668dacecafb6e51b5ca0f704.tar.gz
btrfs-progs-19a2e1f4611eeff9668dacecafb6e51b5ca0f704.tar.xz
btrfs-progs-19a2e1f4611eeff9668dacecafb6e51b5ca0f704.zip
btrfs-progs: fix shadow symbols
This fixes all the instances of warnings that symbols declared in blocks shadow symbols with the same name in surrounding scopes: cmds-device.c:341:22: warning: symbol 'path' shadows an earlier one cmds-device.c:285:14: originally declared here I just renamed or removed the risky shadow symbols instead of pulling their blocks out into functions. Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index 1f172b5..e460bce 100644
--- a/volumes.c
+++ b/volumes.c
@@ -1281,7 +1281,7 @@ again:
BTRFS_BLOCK_GROUP_RAID6)) {
if (raid_map) {
- int i, rot;
+ int rot;
u64 tmp;
u64 raid56_full_stripe_start;
u64 full_stripe_len = nr_data_stripes(map) * map->stripe_len;