mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use const for endptr in dm_units_to_factor
This commit is contained in:
parent
cfe18d85c1
commit
6e9105c7bb
@ -1496,7 +1496,7 @@ int dm_strncpy(char *dest, const char *src, size_t n);
|
||||
* Returns the unit factor or 0 if no unit is recognized.
|
||||
*/
|
||||
uint64_t dm_units_to_factor(const char *units, char *unit_type,
|
||||
int strict, char **endptr);
|
||||
int strict, const char **endptr);
|
||||
|
||||
/**************************
|
||||
* file/stream manipulation
|
||||
|
@ -444,7 +444,7 @@ static int _close_enough(double d1, double d2)
|
||||
}
|
||||
|
||||
uint64_t dm_units_to_factor(const char *units, char *unit_type,
|
||||
int strict, char **endptr)
|
||||
int strict, const char **endptr)
|
||||
{
|
||||
char *ptr = NULL;
|
||||
uint64_t v;
|
||||
|
Loading…
Reference in New Issue
Block a user