projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092a9bd
)
btrfs-progs: avoid to use numeric literal for the size of uuid buffer
author
Satoru Takeuchi
<takeuchi_satoru@jp.fujitsu.com>
Mon, 11 Aug 2014 09:12:16 +0000
(18:12 +0900)
committer
David 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
patch
|
blob
|
history
diff --git
a/cmds-filesystem.c
b/cmds-filesystem.c
index
1dc686e
..
7e8ca95
100644
(file)
--- 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) {