summaryrefslogtreecommitdiff
path: root/src/automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/automount.c b/src/automount.c
index 3c75335c20..aa38492f10 100644
--- a/src/automount.c
+++ b/src/automount.c
@@ -143,7 +143,7 @@ static int automount_add_mount_links(Automount *a) {
assert(a);
LIST_FOREACH(units_by_type, other, UNIT(a)->manager->units_by_type[UNIT_MOUNT])
- if ((r = automount_add_one_mount_link(a, (Mount*) other)) < 0)
+ if ((r = automount_add_one_mount_link(a, MOUNT(other))) < 0)
return r;
return 0;