btrfs-progs: avoid to use numeric literal for the size of uuid buffer
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Mon, 11 Aug 2014 09:12:16 +0000 (18:12 +0900)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 14:09:55 +0000 (16:09 +0200)
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>
cmds-filesystem.c

index 1dc686e..7e8ca95 100644 (file)
@@ -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) {