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:
Eric Sandeen 2013-02-25 16:54:48 -06:00 committed by David Sterba
parent a9df6a1bde
commit 917609b8d6
1 changed files with 8 additions and 5 deletions

View File

@ -564,6 +564,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri,
while (1) { while (1) {
char *tmp; char *tmp;
u64 next; u64 next;
int add_len;
/* /*
* ref_tree = 0 indicates the subvolumes * ref_tree = 0 indicates the subvolumes
* has been deleted. * has been deleted.
@ -572,7 +574,8 @@ static int resolve_root(struct root_lookup *rl, struct root_info *ri,
free(full_path); free(full_path);
return -ENOENT; return -ENOENT;
} }
int add_len = strlen(found->path);
add_len = strlen(found->path);
/* room for / and for null */ /* room for / and for null */
tmp = malloc(add_len + 2 + len); tmp = malloc(add_len + 2 + len);