btrfs-porgs: fi usage: rename variable to avoid shadowing
authorDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 13:34:41 +0000 (14:34 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 14:02:57 +0000 (15:02 +0100)
Reported by gcc -Wshadow .

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-fi-usage.c

index c91c2ca..0299fcc 100644 (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);