summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>2014-08-11 18:12:16 +0900
committerDavid Sterba <dsterba@suse.cz>2014-08-22 16:09:55 +0200
commitcfee4bc139ccb0e1332ec5f108ecb9dd1932e451 (patch)
tree100919ef88fa34153eaf392473edd00c2e54b841
parent092a9bdd64d2110a847d7808dba8fa2f3f8e13c1 (diff)
downloadbtrfs-progs-cfee4bc139ccb0e1332ec5f108ecb9dd1932e451.tar.gz
btrfs-progs: avoid to use numeric literal for the size of uuid buffer
Replace a numeric literal to more descriptive macro for the size of uuid buffer. Signed-of-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--cmds-filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index 1dc686e..7e8ca95 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -547,7 +547,7 @@ static int cmd_show(int argc, char **argv)
char mp[BTRFS_PATH_NAME_MAX + 1];
char path[PATH_MAX];
__u8 fsid[BTRFS_FSID_SIZE];
- char uuid_buf[37];
+ char uuid_buf[BTRFS_UUID_UNPARSED_SIZE];
int found = 0;
while (1) {