libmount: (utils) fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
892fc7d9de
commit
9c566fce79
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue