1
0
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:
Peter Rajnoha 2014-05-26 12:09:01 +02:00
parent cfe18d85c1
commit 6e9105c7bb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;