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:
parent
b74d0dffb1
commit
f41f929854
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue