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

index def32253c4e79499f3e8120aa1a0bf3a6106782f..98ce54d88c080eb300425692caf24eb49bd3dbda 100644 (file)
@@ -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;