master - cleanup: use const for endptr in dm_units_to_factor
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6e9105c7bb7f4a1beb34579303670e4510c7d2e6 Commit: 6e9105c7bb7f4a1beb34579303670e4510c7d2e6 Parent: cfe18d85c148c5d3c9407fac586b28b186471615 Author: Peter Rajnoha <[email protected]> AuthorDate: Mon May 26 12:09:01 2014 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Mon May 26 12:09:01 2014 +0200
cleanup: use const for endptr in dm_units_to_factor
--- libdm/libdevmapper.h | 2 +- libdm/libdm-string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdevmapper.h +1 -1
@@ -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
libdm/libdm-string.c +1 -1
@@ -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;