summaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
authorKarel Zak2018-07-23 11:58:57 +0200
committerKarel Zak2018-07-23 11:58:57 +0200
commit9c566fce79124813aee606754a64426071792f1c (patch)
tree919fc7c4d8961c919699cd952fadaac591723a5c /libmount
parentlib/colors:: fix compiler warnings [-Wcast-qual] (diff)
downloadkernel-qcow2-util-linux-9c566fce79124813aee606754a64426071792f1c.tar.gz
kernel-qcow2-util-linux-9c566fce79124813aee606754a64426071792f1c.tar.xz
kernel-qcow2-util-linux-9c566fce79124813aee606754a64426071792f1c.zip
libmount: (utils) fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/utils.c4
1 files changed, 2 insertions, 2 deletions
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);
}