]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: (utils) fix compiler warnings [-Wcast-qual]
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:58:57 +0000 (11:58 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 09:58:57 +0000 (11:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c

index fd98d0529b63b534ad210bb646cfd504803c3ded..c478e2f9e7f69db6d9e36813250afd81392c2a44 100644 (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);
 }