summaryrefslogtreecommitdiffstats
path: root/mount/umount.c
diff options
context:
space:
mode:
authorKarel Zak2011-01-22 00:09:34 +0100
committerKarel Zak2011-01-22 00:27:26 +0100
commit68164f6c308af1f53567b627876cd1bc8afe8817 (patch)
tree619ba5ff92b2f6a23ce899b9f771279179a7c7ba /mount/umount.c
parentlibmount: add functions for mount.<type> helpers (diff)
downloadkernel-qcow2-util-linux-68164f6c308af1f53567b627876cd1bc8afe8817.tar.gz
kernel-qcow2-util-linux-68164f6c308af1f53567b627876cd1bc8afe8817.tar.xz
kernel-qcow2-util-linux-68164f6c308af1f53567b627876cd1bc8afe8817.zip
libmount: cleanup API, remove typedef
- replace mnt_ with libmnt_ prefix for types (the old prefix was too generic) - remove typedef, use struct everywhere - use shorter functions names (s/userspace/user/; s/mountflags/mflags/) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
-rw-r--r--mount/umount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mount/umount.c b/mount/umount.c
index b93b0b390..079aa337b 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -336,12 +336,12 @@ umount_one (const char *spec, const char *node, const char *type,
if (!nomtab &&
(umnt_err == 0 || umnt_err == EINVAL || umnt_err == ENOENT)) {
#ifdef HAVE_LIBMOUNT_MOUNT
- mnt_update *upd = mnt_new_update();
+ struct libmnt_update *upd = mnt_new_update();
if (upd && !mnt_update_set_fs(upd, 0, node, NULL)) {
- mnt_lock *lc = init_libmount_lock(
+ struct libmnt_lock *lc = init_libmount_lock(
mnt_update_get_filename(upd));
- mnt_update_tab(upd, lc);
+ mnt_update_table(upd, lc);
init_libmount_lock(NULL);
}
mnt_free_update(upd);