diff options
author | David Sterba <dsterba@suse.com> | 2016-01-12 14:34:41 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-12 15:02:57 +0100 |
commit | 4b9d4fe00f7b12d904e35b7e734c68471d549c55 (patch) | |
tree | 3e48a999837e99fbea665c5606c6d631233c0d8a | |
parent | 39e98213ebc05a43c61328bc940dd454361af749 (diff) | |
download | btrfs-progs-4b9d4fe00f7b12d904e35b7e734c68471d549c55.tar.gz |
btrfs-porgs: fi usage: rename variable to avoid shadowing
Reported by gcc -Wshadow .
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | cmds-fi-usage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c index c91c2ca..0299fcc 100644 --- a/cmds-fi-usage.c +++ b/cmds-fi-usage.c @@ -63,8 +63,8 @@ static int add_info_to_list(struct chunk_info **info_ptr, } if (!p) { - int size = sizeof(struct btrfs_chunk) * (*info_count+1); - struct chunk_info *res = realloc(*info_ptr, size); + int tmp = sizeof(struct btrfs_chunk) * (*info_count + 1); + struct chunk_info *res = realloc(*info_ptr, tmp); if (!res) { free(*info_ptr); |