chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unit: use safe downcasts, remove pointless casts
[elogind.git]
/
src
/
automount.c
diff --git
a/src/automount.c
b/src/automount.c
index 3c75335c20c5b8dd6da8013955b25372ff6f6c26..aa38492f10858e72759484d196f535e48f3461ba 100644
(file)
--- 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;