From 4a67a68569cbdf0af82827fb146bde1a0dc0a7fd Mon Sep 17 00:00:00 2001 From: Gui Hecheng Date: Thu, 17 Jul 2014 10:40:38 +0800 Subject: 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 [Use BTRFS_UUID_UNPARSED_SIZE] Signed-off-by: David Sterba --- cmds-scrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-scrub.c') diff --git a/cmds-scrub.c b/cmds-scrub.c index 1d93942f..d4acfd22 100644 --- a/cmds-scrub.c +++ b/cmds-scrub.c @@ -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); -- cgit v1.2.3