btrfs-progs: constify argument of parse_size

The argument isn't changed inside the function.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
[ split from the original patch ]
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Jeff Mahoney 2019-08-27 17:12:13 +02:00 committed by David Sterba
parent b74d0dffb1
commit f41f929854
2 changed files with 2 additions and 2 deletions

View file

@ -638,7 +638,7 @@ static int fls64(u64 x)
return 64 - i;
}
u64 parse_size(char *s)
u64 parse_size(const char *s)
{
char c;
char *endptr;

View file

@ -65,7 +65,7 @@ int pretty_size_snprintf(u64 size, char *str, size_t str_bytes, unsigned unit_mo
#define pretty_size(size) pretty_size_mode(size, UNITS_DEFAULT)
const char *pretty_size_mode(u64 size, unsigned mode);
u64 parse_size(char *s);
u64 parse_size(const char *s);
u64 parse_qgroupid(const char *p);
u64 arg_strtou64(const char *str);
int open_file_or_dir(const char *fname, DIR **dirstream);