diff options
author | Karel Zak | 2011-06-27 13:31:48 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-27 13:31:48 +0200 |
commit | 5dfc98439280aedd3df095276df5e20f1bf7a2d2 (patch) | |
tree | 334e782ea6182452e9ce4b6f7a13e2ad20f0093d /libmount/src/context_umount.c | |
parent | libmount: allow to convert /dev/loopN to backing filename (diff) | |
download | kernel-qcow2-util-linux-5dfc98439280aedd3df095276df5e20f1bf7a2d2.tar.gz kernel-qcow2-util-linux-5dfc98439280aedd3df095276df5e20f1bf7a2d2.tar.xz kernel-qcow2-util-linux-5dfc98439280aedd3df095276df5e20f1bf7a2d2.zip |
libmount: minor fixes
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r-- | libmount/src/context_umount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index e10af52f2..184a51efe 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -163,7 +163,7 @@ static int prepare_helper_from_options(struct libmnt_context *cxt, if (!opts) return 0; - if (mnt_optstr_get_option((char *) opts, name, &suffix, &valsz)) + if (mnt_optstr_get_option(opts, name, &suffix, &valsz)) return 0; suffix = strndup(suffix, valsz); @@ -305,7 +305,7 @@ static int evaluate_permissions(struct libmnt_context *cxt) /* get options from mtab */ optstr = mnt_fs_get_user_options(cxt->fs); - if (optstr && !mnt_optstr_get_option((char *) optstr, + if (optstr && !mnt_optstr_get_option(optstr, "user", &mtab_user, &sz) && sz) ok = !strncmp(curr_user, mtab_user, sz); } |