machine: switch to BusLocator-oriented helpers

Replace existing sd_bus_x calls with counterparts from bus-locator.h.
This commit is contained in:
Quentin Deslandes
2022-07-05 16:40:16 +02:00
committed by Lennart Poettering
parent b8df7f8629
commit 57f28dee00
2 changed files with 7 additions and 24 deletions
+3 -4
View File
@@ -8,6 +8,7 @@
#include "alloc-util.h"
#include "bus-error.h"
#include "bus-locator.h"
#include "bus-util.h"
#include "env-file.h"
#include "errno-util.h"
@@ -347,12 +348,10 @@ static int machine_start_scope(
if (!unit)
return log_oom();
r = sd_bus_message_new_method_call(
r = bus_message_new_method_call(
machine->manager->bus,
&m,
"org.freedesktop.systemd1",
"/org/freedesktop/systemd1",
"org.freedesktop.systemd1.Manager",
bus_systemd_mgr,
"StartTransientUnit");
if (r < 0)
return r;