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>
master
Gui Hecheng 2014-07-17 10:40:38 +08:00 committed by David Sterba
parent c5898d811e
commit 4a67a68569
1 changed files with 1 additions and 1 deletions

View File

@ -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);