diff options
author | Jeff Mahoney <jeffm@suse.com> | 2018-05-16 17:38:36 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 14:58:50 +0200 |
commit | d265a79a25fa3bba3ad82f9a13721fe215cffe70 (patch) | |
tree | 096e321223759a562e15a7a845c07b0e68a972ad /chunk-recover.c | |
parent | 66d90453cd4a619095338585a6b221f57a7b18d9 (diff) |
btrfs-progs: constify pathnames passed as arguments
It's unlikely we're going to modify a pathname argument, so codify that
and use const.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'chunk-recover.c')
-rw-r--r-- | chunk-recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chunk-recover.c b/chunk-recover.c index 705bcf52..1d30db51 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1492,7 +1492,7 @@ out: return ERR_PTR(ret); } -static int recover_prepare(struct recover_control *rc, char *path) +static int recover_prepare(struct recover_control *rc, const char *path) { int ret; int fd; @@ -2296,7 +2296,7 @@ static void validate_rebuild_chunks(struct recover_control *rc) /* * Return 0 when successful, < 0 on error and > 0 if aborted by user */ -int btrfs_recover_chunk_tree(char *path, int verbose, int yes) +int btrfs_recover_chunk_tree(const char *path, int verbose, int yes) { int ret = 0; struct btrfs_root *root = NULL; |