btrfs-porgs: fi usage: rename variable to avoid shadowing

Reported by gcc -Wshadow .

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-01-12 14:34:41 +01:00
parent 39e98213eb
commit 4b9d4fe00f

View File

@ -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);