summaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-05-03 08:41:14 +0200
committerVito Caputo <vcaputo@pengaru.com>2020-05-07 17:46:44 +0200
commit7ad61613de53bf3d98c66032ef2120691d477d75 (patch)
tree971c03d1d29385ee685a915a1d1a14c554f68861 /src/run
parentresolve: switch to BusLocator-oriented helpers (diff)
downloadsystemd-7ad61613de53bf3d98c66032ef2120691d477d75.tar.xz
systemd-7ad61613de53bf3d98c66032ef2120691d477d75.zip
run: switch to BusLocator-oriented helpers
Mechanical substitution reducing some verbosity
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/run/run.c b/src/run/run.c
index ea49d5dab5..8761dc5d07 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -1166,13 +1166,7 @@ static int start_transient_service(
return r;
}
- r = sd_bus_message_new_method_call(
- bus,
- &m,
- "org.freedesktop.systemd1",
- "/org/freedesktop/systemd1",
- "org.freedesktop.systemd1.Manager",
- "StartTransientUnit");
+ r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "StartTransientUnit");
if (r < 0)
return bus_log_create_error(r);
@@ -1420,13 +1414,7 @@ static int start_transient_scope(sd_bus *bus) {
return r;
}
- r = sd_bus_message_new_method_call(
- bus,
- &m,
- "org.freedesktop.systemd1",
- "/org/freedesktop/systemd1",
- "org.freedesktop.systemd1.Manager",
- "StartTransientUnit");
+ r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "StartTransientUnit");
if (r < 0)
return bus_log_create_error(r);
@@ -1610,13 +1598,7 @@ static int start_transient_trigger(
return log_error_errno(r, "Failed to change unit suffix: %m");
}
- r = sd_bus_message_new_method_call(
- bus,
- &m,
- "org.freedesktop.systemd1",
- "/org/freedesktop/systemd1",
- "org.freedesktop.systemd1.Manager",
- "StartTransientUnit");
+ r = bus_message_new_method_call(bus, &m, bus_systemd_mgr, "StartTransientUnit");
if (r < 0)
return bus_log_create_error(r);