* [PATCH 2/3] btrfs-progs: avoid to use numeric literal for the size of uuid buffer
@ 2014-08-11 9:12 Satoru Takeuchi
0 siblings, 0 replies; only message in thread
From: Satoru Takeuchi @ 2014-08-11 9:12 UTC (permalink / raw)
To: linux-btrfs@vger.kernel.org
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-11 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 9:12 [PATCH 2/3] btrfs-progs: avoid to use numeric literal for the size of uuid buffer Satoru Takeuchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).