X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpath.c;h=a16d3fa0f2d06cc4c4f0e274e0a9d2e8bc638235;hb=ce3fd7e72a1b101002617bd410031e65d290f56f;hp=c8086a8d1927c84e92fdd0d4ea0478b604b59d08;hpb=1124fe6f01b1d59d016c238026f20380f38d98dc;p=elogind.git diff --git a/src/path.c b/src/path.c index c8086a8d1..a16d3fa0f 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;