diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-07-17 10:40:38 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 15:07:01 +0200 |
commit | 4a67a68569cbdf0af82827fb146bde1a0dc0a7fd (patch) | |
tree | db8f53bcccce83e256e034822b191ffc6af8edd5 | |
parent | c5898d811e967439a44cc7f220227225ec8fe4ce (diff) |
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>
-rw-r--r-- | cmds-scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |