summaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
authorKarel Zak2018-07-20 14:15:42 +0200
committerKarel Zak2018-07-20 14:15:42 +0200
commitea927bde6bc1b1bebb04081b516a46e18b95fc41 (patch)
tree84d0712d06e325f1dbe18c05e1bc324cb0f26948 /libmount
parentlib/color-names: const cleanup (diff)
downloadkernel-qcow2-util-linux-ea927bde6bc1b1bebb04081b516a46e18b95fc41.tar.gz
kernel-qcow2-util-linux-ea927bde6bc1b1bebb04081b516a46e18b95fc41.tar.xz
kernel-qcow2-util-linux-ea927bde6bc1b1bebb04081b516a46e18b95fc41.zip
libmount: cleanup const in umount code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/context_umount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index b28e6faea..645fefb6a 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -326,8 +326,8 @@ static int lookup_umount_fs(struct libmnt_context *cxt)
static int is_associated_fs(const char *devname, struct libmnt_fs *fs)
{
uintmax_t offset = 0;
- const char *src;
- char *val, *optstr;
+ const char *src, *optstr;
+ char *val;
size_t valsz;
int flags = 0;
@@ -340,7 +340,7 @@ static int is_associated_fs(const char *devname, struct libmnt_fs *fs)
return 0;
/* check for the offset option in @fs */
- optstr = (char *) mnt_fs_get_user_options(fs);
+ optstr = mnt_fs_get_user_options(fs);
if (optstr &&
mnt_optstr_get_option(optstr, "offset", &val, &valsz) == 0) {
@@ -597,7 +597,7 @@ static int exec_helper(struct libmnt_context *cxt)
&& strchr(type, '.')
&& !endswith(cxt->helper, type)) {
args[i++] = "-t"; /* 8 */
- args[i++] = (char *) type; /* 9 */
+ args[i++] = type; /* 9 */
}
if (namespace) {
args[i++] = "-N"; /* 10 */