Skip to contentSkip to conversation

btrfs-progs: avoid to use numeric literal for the size of uuid buffer

PATCH Superseded Satoru Takeuchi 1 participant 1 message Aug 11, 2014 Btrfs file system

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 btrfs-progs: avoid to use numeric literal for the size of uuid buffer

From: Satoru Takeuchi <[email protected]>

Replace a numeric literal to more descriptive macro for the size of uuid buffer.

---
 cmds-filesystem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmds-filesystem.c +1 -1
index 5a80a98..7633f1f 100644
@@ -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) {
Signature · 1 line
1.9.3