Satoru Takeuchi
2014-Aug-11 09:12 UTC
[PATCH 2/3] btrfs-progs: avoid to use numeric literal for the size of uuid buffer
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Replace a numeric literal to more descriptive macro for the size of uuid buffer. Signed-of-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> --- cmds-filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 5a80a98..7633f1f 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -603,7 +603,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) { -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html