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
/
path.c
diff --git
a/src/path.c
b/src/path.c
index c8086a8d1927c84e92fdd0d4ea0478b604b59d08..a16d3fa0f2d06cc4c4f0e274e0a9d2e8bc638235 100644
(file)
--- a/
src/path.c
+++ b/
src/path.c
@@
-287,7
+287,7
@@
static int path_add_mount_links(Path *p) {
assert(p);
LIST_FOREACH(units_by_type, other, UNIT(p)->manager->units_by_type[UNIT_MOUNT])
- if ((r = path_add_one_mount_link(p,
(Mount*) other
)) < 0)
+ if ((r = path_add_one_mount_link(p,
MOUNT(other)
)) < 0)
return r;
return 0;