From: Karel Zak Date: Mon, 23 Jul 2018 09:33:05 +0000 (+0200) Subject: libmount: fix compiler warning [-Wcast-qual] X-Git-Tag: v2.33-rc1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b00dd55ac8303a781f870a153a403f74b10af823;p=thirdparty%2Futil-linux.git libmount: fix compiler warning [-Wcast-qual] Signed-off-by: Karel Zak --- diff --git a/libmount/src/fs.c b/libmount/src/fs.c index def32253c4..98ce54d88c 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -840,7 +840,7 @@ int mnt_fs_append_options(struct libmnt_fs *fs, const char *optstr) if (!optstr) return 0; - rc = mnt_split_optstr((char *) optstr, &u, &v, &f, 0, 0); + rc = mnt_split_optstr(optstr, &u, &v, &f, 0, 0); if (rc) return rc; @@ -882,7 +882,7 @@ int mnt_fs_prepend_options(struct libmnt_fs *fs, const char *optstr) if (!optstr) return 0; - rc = mnt_split_optstr((char *) optstr, &u, &v, &f, 0, 0); + rc = mnt_split_optstr(optstr, &u, &v, &f, 0, 0); if (rc) return rc;