mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
btrfs-progs: Tidy up resolve_root
Whitespace fixes and fix a variable declaration after code. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
This commit is contained in:
parent
a9df6a1bde
commit
917609b8d6
@ -564,6 +564,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri,
|
||||
while (1) {
|
||||
char *tmp;
|
||||
u64 next;
|
||||
int add_len;
|
||||
|
||||
/*
|
||||
* ref_tree = 0 indicates the subvolumes
|
||||
* has been deleted.
|
||||
@ -572,7 +574,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri,
|
||||
free(full_path);
|
||||
return -ENOENT;
|
||||
}
|
||||
int add_len = strlen(found->path);
|
||||
|
||||
add_len = strlen(found->path);
|
||||
|
||||
/* room for / and for null */
|
||||
tmp = malloc(add_len + 2 + len);
|
||||
|
Loading…
Reference in New Issue
Block a user