summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-01-15 12:37:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-01-16 13:34:42 +0100
commit595ed347a87e69893c5e72168fc2e94a7cb09e73 (patch)
treec0e9270f001c289c429d4f239b41ac60df75d21b /src/path.c
parent1124fe6f01b1d59d016c238026f20380f38d98dc (diff)
unit: use safe downcasts, remove pointless casts
Always use the macros for downcasting. Remove a few obviously pointless casts.
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index c8086a8d19..a16d3fa0f2 100644
--- 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;