libmount: (utils) fix compiler warnings [-Wcast-qual]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-07-23 11:58:57 +02:00
parent 892fc7d9de
commit 9c566fce79
1 changed files with 2 additions and 2 deletions

View File

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