From 9c566fce79124813aee606754a64426071792f1c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 23 Jul 2018 11:58:57 +0200 Subject: libmount: (utils) fix compiler warnings [-Wcast-qual] Signed-off-by: Karel Zak --- libmount/src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmount/src') diff --git a/libmount/src/utils.c b/libmount/src/utils.c index fd98d0529..c478e2f9e 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -112,8 +112,8 @@ int mnt_parse_offset(const char *str, size_t len, uintmax_t *res) /* used as a callback by bsearch in mnt_fstype_is_pseudofs() */ static int fstype_cmp(const void *v1, const void *v2) { - const char *s1 = *(const char **)v1; - const char *s2 = *(const char **)v2; + const char *s1 = *(char * const *)v1; + const char *s2 = *(char * const *)v2; return strcmp(s1, s2); } -- cgit v1.2.3-55-g7522