diff options
author | Karel Zak | 2018-07-23 11:58:57 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-23 11:58:57 +0200 |
commit | 9c566fce79124813aee606754a64426071792f1c (patch) | |
tree | 919fc7c4d8961c919699cd952fadaac591723a5c /libmount/src/utils.c | |
parent | lib/colors:: fix compiler warnings [-Wcast-qual] (diff) | |
download | kernel-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/src/utils.c')
-rw-r--r-- | libmount/src/utils.c | 4 |
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); } |