From 6e9105c7bb7f4a1beb34579303670e4510c7d2e6 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Mon, 26 May 2014 12:09:01 +0200 Subject: [PATCH] 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(-) diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index d63b135a0..990692cf3 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -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 diff --git a/libdm/libdm-string.c b/libdm/libdm-string.c index 7336e6bf7..8ad479cd2 100644 --- a/libdm/libdm-string.c +++ b/libdm/libdm-string.c @@ -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;