diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-08-09 15:20:47 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-09-03 19:40:54 +0200 |
commit | fa25b35dcc39854a9f7399af86e56a34171f63a4 (patch) | |
tree | 21d7485eacb2cd1314170859ea7ed316e65052a5 /btrfs-list.c | |
parent | 116123c5f21bdb9e35abaf470592186c2353920c (diff) |
btrfs-progs: mark static & remove unused from non-kernel code
Mark many functions as static, and remove any resulting dead code.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/btrfs-list.c b/btrfs-list.c index a6902c37..072a5927 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -46,7 +46,7 @@ struct root_lookup { struct rb_root root; }; -struct { +static struct { char *name; char *column_name; int need_print; @@ -240,9 +240,8 @@ void btrfs_list_free_comparer_set(struct btrfs_list_comparer_set *comp_set) free(comp_set); } -int btrfs_list_setup_comparer(struct btrfs_list_comparer_set **comp_set, - enum btrfs_list_comp_enum comparer, - int is_descending) +static int btrfs_list_setup_comparer(struct btrfs_list_comparer_set **comp_set, + enum btrfs_list_comp_enum comparer, int is_descending) { struct btrfs_list_comparer_set *set = *comp_set; int size; @@ -820,7 +819,7 @@ static char *__ino_resolve(int fd, u64 dirid) * simple string builder, returning a new string with both * dirid and name */ -char *build_name(char *dirid, char *name) +static char *build_name(char *dirid, char *name) { char *full; if (!dirid) @@ -1477,7 +1476,7 @@ static void print_all_volume_info(struct root_lookup *sorted_tree, } } -int btrfs_list_subvols(int fd, struct root_lookup *root_lookup) +static int btrfs_list_subvols(int fd, struct root_lookup *root_lookup) { int ret; @@ -1522,7 +1521,7 @@ int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set, return 0; } -char *strdup_or_null(const char *s) +static char *strdup_or_null(const char *s) { if (!s) return NULL; |