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-device.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-device.c')
-rw-r--r-- | cmds-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-device.c b/cmds-device.c index 86459d1b..a49c9d9d 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -526,7 +526,7 @@ static const char * const cmd_device_usage_usage[] = { NULL }; -static int _cmd_device_usage(int fd, char *path, unsigned unit_mode) +static int _cmd_device_usage(int fd, const char *path, unsigned unit_mode) { int i; int ret = 0; |