mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
btrfs-progs: replace a confusing raw number with a macro
The raw number 36 for the uuid string length is somewhat confusing, use a macro to define replace it. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> [Use BTRFS_UUID_UNPARSED_SIZE] Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
c5898d811e
commit
4a67a68569
@ -550,7 +550,7 @@ again:
|
||||
;
|
||||
if (i + j + 1 >= avail)
|
||||
_SCRUB_INVALID;
|
||||
if (j != 36)
|
||||
if (j != BTRFS_UUID_UNPARSED_SIZE - 1)
|
||||
_SCRUB_INVALID;
|
||||
l[i + j] = '\0';
|
||||
ret = uuid_parse(l + i, p[curr]->fsid);
|
||||
|
Loading…
Reference in New Issue
Block a user