mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-28 00:52:17 +00:00
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:
parent
39e98213eb
commit
4b9d4fe00f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user