summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-12 14:34:41 +0100
committerDavid Sterba <dsterba@suse.com>2016-01-12 15:02:57 +0100
commit4b9d4fe00f7b12d904e35b7e734c68471d549c55 (patch)
tree3e48a999837e99fbea665c5606c6d631233c0d8a
parent39e98213ebc05a43c61328bc940dd454361af749 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c
index c91c2ca7..0299fcc1 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);