From 2c7dc8e21014001abd2629d6b7654af3ee6ad855 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 31 Oct 2016 11:08:06 +0100 Subject: btrfs-progs: list: constify prefix arugment Signed-off-by: David Sterba --- btrfs-list.c | 7 ++++--- btrfs-list.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 89769bc1..5d9a79ab 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1374,7 +1374,8 @@ static void print_subvolume_column(struct root_info *subv, } } -static void print_single_volume_info_raw(struct root_info *subv, char *raw_prefix) +static void print_single_volume_info_raw(struct root_info *subv, + const char *raw_prefix) { int i; @@ -1456,7 +1457,7 @@ static void print_all_volume_info_tab_head(void) } static void print_all_volume_info(struct root_lookup *sorted_tree, - int layout, char *raw_prefix) + int layout, const char *raw_prefix) { struct rb_node *n; struct root_info *entry; @@ -1503,7 +1504,7 @@ static int btrfs_list_subvols(int fd, struct root_lookup *root_lookup) int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set, struct btrfs_list_comparer_set *comp_set, - int layout, int full_path, char *raw_prefix) + int layout, int full_path, const char *raw_prefix) { struct root_lookup root_lookup; struct root_lookup root_sort; diff --git a/btrfs-list.h b/btrfs-list.h index d8ad7328..68927036 100644 --- a/btrfs-list.h +++ b/btrfs-list.h @@ -166,7 +166,7 @@ struct btrfs_list_comparer_set *btrfs_list_alloc_comparer_set(void); int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set, struct btrfs_list_comparer_set *comp_set, - int is_tab_result, int full_path, char *raw_prefix); + int is_tab_result, int full_path, const char *raw_prefix); int btrfs_list_find_updated_files(int fd, u64 root_id, u64 oldest_gen); int btrfs_list_get_default_subvolume(int fd, u64 *default_id); char *btrfs_list_path_for_root(int fd, u64 root); -- cgit v1.2.3