From: Karel Zak Date: Mon, 23 Jul 2018 09:58:57 +0000 (+0200) Subject: libmount: (utils) fix compiler warnings [-Wcast-qual] X-Git-Tag: v2.33-rc1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c566fce79124813aee606754a64426071792f1c;p=thirdparty%2Futil-linux.git libmount: (utils) fix compiler warnings [-Wcast-qual] Signed-off-by: Karel Zak --- diff --git a/libmount/src/utils.c b/libmount/src/utils.c index fd98d0529b..c478e2f9e7 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); }