From d265a79a25fa3bba3ad82f9a13721fe215cffe70 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney Date: Wed, 16 May 2018 17:38:36 -0400 Subject: 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 Signed-off-by: Jeff Mahoney Signed-off-by: David Sterba --- cmds-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds-device.c') 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; -- cgit v1.2.3