projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39e9821
)
btrfs-porgs: fi usage: rename variable to avoid shadowing
author
David Sterba
<dsterba@suse.com>
Tue, 12 Jan 2016 13:34:41 +0000
(14:34 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/cmds-fi-usage.c
b/cmds-fi-usage.c
index
c91c2ca
..
0299fcc
100644
(file)
--- 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);