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 /cmds-rescue.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 'cmds-rescue.c')
-rw-r--r-- | cmds-rescue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-rescue.c b/cmds-rescue.c index c40088ad..c61145bc 100644 --- a/cmds-rescue.c +++ b/cmds-rescue.c @@ -32,8 +32,8 @@ static const char * const rescue_cmd_group_usage[] = { NULL }; -int btrfs_recover_chunk_tree(char *path, int verbose, int yes); -int btrfs_recover_superblocks(char *path, int verbose, int yes); +int btrfs_recover_chunk_tree(const char *path, int verbose, int yes); +int btrfs_recover_superblocks(const char *path, int verbose, int yes); static const char * const cmd_rescue_chunk_recover_usage[] = { "btrfs rescue chunk-recover [options] <device>", |