summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 16:55:49 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 16:55:49 +0200
commit4cd1fbcc0648a289e9bf9d9047621bbdf7ec0ece (patch)
treeb4442600eb49703950251cd30274eedea48c4ecc /src/path.c
parentbb00e604097fba830af1dc078d78aff278dfcd37 (diff)
unit: get rid of various unnecessary casts
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 8a940d0262..24545bad35 100644
--- a/src/path.c
+++ b/src/path.c
@@ -91,7 +91,7 @@ static int path_add_mount_links(Path *p) {
static int path_verify(Path *p) {
assert(p);
- if (UNIT(p)->meta.load_state != UNIT_LOADED)
+ if (p->meta.load_state != UNIT_LOADED)
return 0;
if (!p->specs) {
@@ -297,7 +297,7 @@ static void path_enter_running(Path *p) {
int r;
assert(p);
- if ((r = manager_add_job(UNIT(p)->meta.manager, JOB_START, p->unit, JOB_REPLACE, true, NULL)) < 0)
+ if ((r = manager_add_job(p->meta.manager, JOB_START, p->unit, JOB_REPLACE, true, NULL)) < 0)
goto fail;
path_set_state(p, PATH_RUNNING);