summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-22 17:01:20 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-30 16:25:47 +0200
commit113d1ad49c6e488ae494e9bb6a4eaa2a5ee4af7c (patch)
treed7daf806de749e1fbd38ff8ff268d269a06c0651 /utils.c
parentc1bb7a2d60092a11ae98e10575dedb1ddc434872 (diff)
btrfs-progs: cleanup block group helpers types
Use const char and remove stray prototypes. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index e3e1502e..160bd734 100644
--- a/utils.c
+++ b/utils.c
@@ -2821,7 +2821,7 @@ int find_next_key(struct btrfs_path *path, struct btrfs_key *key)
return 1;
}
-char* btrfs_group_type_str(u64 flag)
+const char* btrfs_group_type_str(u64 flag)
{
u64 mask = BTRFS_BLOCK_GROUP_TYPE_MASK |
BTRFS_SPACE_INFO_GLOBAL_RSV;
@@ -2842,7 +2842,7 @@ char* btrfs_group_type_str(u64 flag)
}
}
-char* btrfs_group_profile_str(u64 flag)
+const char* btrfs_group_profile_str(u64 flag)
{
switch (flag & BTRFS_BLOCK_GROUP_PROFILE_MASK) {
case 0: