diff options
author | David Sterba <dsterba@suse.com> | 2016-08-31 19:38:31 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-21 13:44:24 +0200 |
commit | 7aaa1a92f621eec59a4ef834afefd831915a3521 (patch) | |
tree | 3fa23165d53ebdaad1cc71200f01e9c37295ac26 /utils.h | |
parent | 90e3e630c2f641f3ceca32672e8e3a8ac0ceae8a (diff) |
btrfs-progs: mkfs: use preallocated buffers for config uuids
No need for dynamic allocation, the buffers are small, remove the
now-useless error conditions.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,8 +112,8 @@ void btrfs_parse_features_to_string(char *buf, u64 flags); struct btrfs_mkfs_config { char *label; - char *fs_uuid; - char *chunk_uuid; + char fs_uuid[BTRFS_UUID_UNPARSED_SIZE]; + char chunk_uuid[BTRFS_UUID_UNPARSED_SIZE]; u64 blocks[8]; u64 num_bytes; u32 nodesize; |